Skip to content

Commit

Permalink
Skip checking the initial power table CID if undefined (#12725)
Browse files Browse the repository at this point in the history
In Lotus F3 cli Only check the expected power table CID when it is
present.
  • Loading branch information
masih authored Nov 26, 2024
1 parent 5791b4a commit c9cbef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/f3.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var f3SubCmdPowerTable = &cli.Command{
if err != nil {
return fmt.Errorf("gettingh power table CID at instance %d: %w", instance, err)
}
if !expectedPowerTableCID.Equals(actualPowerTableCID) {
if !cid.Undef.Equals(expectedPowerTableCID) && !expectedPowerTableCID.Equals(actualPowerTableCID) {
return fmt.Errorf("expected power table CID %s at instance %d, got: %s", expectedPowerTableCID, instance, actualPowerTableCID)
}
result.PowerTable.CID = actualPowerTableCID.String()
Expand Down Expand Up @@ -247,7 +247,7 @@ var f3SubCmdPowerTable = &cli.Command{
if err != nil {
return fmt.Errorf("gettingh power table CID at instance %d: %w", instance, err)
}
if !expectedPowerTableCID.Equals(actualPowerTableCID) {
if !cid.Undef.Equals(expectedPowerTableCID) && !expectedPowerTableCID.Equals(actualPowerTableCID) {
return fmt.Errorf("expected power table CID %s at instance %d, got: %s", expectedPowerTableCID, instance, actualPowerTableCID)
}
result.PowerTable.CID = actualPowerTableCID.String()
Expand Down

0 comments on commit c9cbef3

Please sign in to comment.