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 and rjan90 committed Nov 28, 2024
1 parent 4a10225 commit c6e0637
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 c6e0637

Please sign in to comment.