mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +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,7 +2408,7 @@ func TestSyncLabels(t *testing.T) {
|
|||||||
t.Logf("No action yet")
|
t.Logf("No action yet")
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
action := actions[1]
|
for _, action := range actions {
|
||||||
if action.GetVerb() == "patch" {
|
if action.GetVerb() == "patch" {
|
||||||
patchAction := action.(core.PatchActionImpl)
|
patchAction := action.(core.PatchActionImpl)
|
||||||
var err error
|
var err error
|
||||||
@ -2418,6 +2418,7 @@ func TestSyncLabels(t *testing.T) {
|
|||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
savedNode = test.existingNode
|
savedNode = test.existingNode
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user