fix: tests: Fix TestMinerAllInfo test
This commit is contained in:
parent
3841e5444f
commit
d2c0603717
@ -25,7 +25,7 @@ func TestMinerAllInfo(t *testing.T) {
|
|||||||
kit.QuietMiningLogs()
|
kit.QuietMiningLogs()
|
||||||
|
|
||||||
client, miner, ens := kit.EnsembleMinimal(t)
|
client, miner, ens := kit.EnsembleMinimal(t)
|
||||||
ens.InterconnectAll().BeginMining(time.Second)
|
ens.InterconnectAll().BeginMiningMustPost(5 * time.Millisecond)
|
||||||
|
|
||||||
run := func(t *testing.T) {
|
run := func(t *testing.T) {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
|
@ -198,9 +198,18 @@ var infoAllCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("\n#: Sector List")
|
fmt.Println("\n#: Sector List")
|
||||||
if err := sectorsListCmd.Action(cctx); err != nil {
|
{
|
||||||
|
fs := &flag.FlagSet{}
|
||||||
|
for _, f := range sectorsListCmd.Flags {
|
||||||
|
if err := f.Apply(fs); err != nil {
|
||||||
fmt.Println("ERROR: ", err)
|
fmt.Println("ERROR: ", err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if err := sectorsListCmd.Action(cli.NewContext(cctx.App, fs, cctx)); err != nil {
|
||||||
|
fmt.Println("ERROR: ", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Println("\n#: Storage Sector List")
|
fmt.Println("\n#: Storage Sector List")
|
||||||
if err := storageListSectorsCmd.Action(cctx); err != nil {
|
if err := storageListSectorsCmd.Action(cctx); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user