mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-22 02:18:51 +00:00
[test][kubelet]: Fix out of bounds in TestSyncLabels unit
This commit is contained in:
@@ -2408,7 +2408,7 @@ func TestSyncLabels(t *testing.T) {
|
||||
t.Logf("No action yet")
|
||||
return false, nil
|
||||
}
|
||||
action := actions[1]
|
||||
for _, action := range actions {
|
||||
if action.GetVerb() == "patch" {
|
||||
patchAction := action.(core.PatchActionImpl)
|
||||
var err error
|
||||
@@ -2418,6 +2418,7 @@ func TestSyncLabels(t *testing.T) {
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
savedNode = test.existingNode
|
||||
}
|
||||
|
Reference in New Issue
Block a user