Skip to content

Commit 84e09d7

Browse files
committed
Fix KubeletConfig Failure condition status check in swap automation test
1 parent 781ac9d commit 84e09d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/extended/node/node_swap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ var _ = g.Describe("[Jira:Node][sig-node] Node non-cnv swap configuration", func
148148

149149
// Check for Failure condition with the expected error message
150150
for _, condition := range kc.Status.Conditions {
151-
if condition.Type == machineconfigv1.KubeletConfigFailure && condition.Status == "False" {
151+
if condition.Type == machineconfigv1.KubeletConfigFailure && condition.Status == corev1.ConditionTrue {
152152
framework.Logf("Found Failure condition: %s", condition.Message)
153153
if condition.Message == "Error: KubeletConfiguration: failSwapOn is not allowed to be set, but contains: true" {
154154
return true, nil

0 commit comments

Comments
 (0)