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()
|
||||
|
||||
client, miner, ens := kit.EnsembleMinimal(t)
|
||||
ens.InterconnectAll().BeginMining(time.Second)
|
||||
ens.InterconnectAll().BeginMiningMustPost(5 * time.Millisecond)
|
||||
|
||||
run := func(t *testing.T) {
|
||||
app := cli.NewApp()
|
||||
|
@ -198,8 +198,17 @@ var infoAllCmd = &cli.Command{
|
||||
}
|
||||
|
||||
fmt.Println("\n#: Sector List")
|
||||
if err := sectorsListCmd.Action(cctx); err != nil {
|
||||
fmt.Println("ERROR: ", err)
|
||||
{
|
||||
fs := &flag.FlagSet{}
|
||||
for _, f := range sectorsListCmd.Flags {
|
||||
if err := f.Apply(fs); err != nil {
|
||||
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")
|
||||
|
Loading…
Reference in New Issue
Block a user