mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #106327 from ravisantoshgudimetla/fix-kubelet-units
[test][kubelet]: Fix out of bounds in TestSyncLabels unit
This commit is contained in:
commit
e7c3138d94
@ -2408,14 +2408,15 @@ func TestSyncLabels(t *testing.T) {
|
||||
t.Logf("No action yet")
|
||||
return false, nil
|
||||
}
|
||||
action := actions[1]
|
||||
if action.GetVerb() == "patch" {
|
||||
patchAction := action.(core.PatchActionImpl)
|
||||
var err error
|
||||
savedNode, err = applyNodeStatusPatch(test.existingNode, patchAction.GetPatch())
|
||||
if err != nil {
|
||||
t.Logf("node patching failed, %v", err)
|
||||
return false, nil
|
||||
for _, action := range actions {
|
||||
if action.GetVerb() == "patch" {
|
||||
patchAction := action.(core.PatchActionImpl)
|
||||
var err error
|
||||
savedNode, err = applyNodeStatusPatch(test.existingNode, patchAction.GetPatch())
|
||||
if err != nil {
|
||||
t.Logf("node patching failed, %v", err)
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user