Skip to content

Commit

Permalink
Fix logic in cluster upgrade tests
Browse files Browse the repository at this point in the history
Co-authored-by: Danil Grigorev <danil.grigorev@suse.com>
Signed-off-by: Alexander Demicev <alexandr.demicev@suse.com>
  • Loading branch information
alexander-demicev and Danil-Grigorev authored Nov 14, 2023
1 parent 69161e8 commit 31e7eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func WaitForClusterToUpgrade(ctx context.Context, input WaitForClusterToUpgradeI
}

for _, machine := range machineList.Items {
if machine.Spec.Version != nil && *machine.Spec.Version != input.VersionAfterUpgrade {
if machine.Spec.Version == nil || *machine.Spec.Version != input.VersionAfterUpgrade {
return false, nil
}
}
Expand Down

0 comments on commit 31e7eb1

Please sign in to comment.