fix: tests: Fix TestMinerAllInfo test

This commit is contained in:
Łukasz Magiera 2023-02-20 14:11:49 +01:00
parent 3841e5444f
commit d2c0603717
2 changed files with 12 additions and 3 deletions

View File

@ -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()

View File

@ -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")