Skip to content

Commit c6e0637

Browse files
masihrjan90
authored andcommitted
Skip checking the initial power table CID if undefined (#12725)
In Lotus F3 cli Only check the expected power table CID when it is present.
1 parent 4a10225 commit c6e0637

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/f3.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ var f3SubCmdPowerTable = &cli.Command{
162162
if err != nil {
163163
return fmt.Errorf("gettingh power table CID at instance %d: %w", instance, err)
164164
}
165-
if !expectedPowerTableCID.Equals(actualPowerTableCID) {
165+
if !cid.Undef.Equals(expectedPowerTableCID) && !expectedPowerTableCID.Equals(actualPowerTableCID) {
166166
return fmt.Errorf("expected power table CID %s at instance %d, got: %s", expectedPowerTableCID, instance, actualPowerTableCID)
167167
}
168168
result.PowerTable.CID = actualPowerTableCID.String()
@@ -247,7 +247,7 @@ var f3SubCmdPowerTable = &cli.Command{
247247
if err != nil {
248248
return fmt.Errorf("gettingh power table CID at instance %d: %w", instance, err)
249249
}
250-
if !expectedPowerTableCID.Equals(actualPowerTableCID) {
250+
if !cid.Undef.Equals(expectedPowerTableCID) && !expectedPowerTableCID.Equals(actualPowerTableCID) {
251251
return fmt.Errorf("expected power table CID %s at instance %d, got: %s", expectedPowerTableCID, instance, actualPowerTableCID)
252252
}
253253
result.PowerTable.CID = actualPowerTableCID.String()

0 commit comments

Comments
 (0)