Merge pull request #10319 from filecoin-project/fix/allinfo-test

fix: tests: Fix TestMinerAllInfo test
This commit is contained in:
Łukasz Magiera 2023-02-23 14:16:40 +01:00 committed by GitHub
commit aa7b5c40b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")