mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #72215 from caesarxuchao/minor-test-fix
Fix the unit test patch to not modify the node name
This commit is contained in:
commit
197fc67693
@ -69,7 +69,9 @@ func TestPatchNodeNonErrorCases(t *testing.T) {
|
|||||||
t.Fatalf("failed to create node to fake client: %v", err)
|
t.Fatalf("failed to create node to fake client: %v", err)
|
||||||
}
|
}
|
||||||
conditionFunction := apiclient.PatchNodeOnce(client, tc.lookupName, func(node *v1.Node) {
|
conditionFunction := apiclient.PatchNodeOnce(client, tc.lookupName, func(node *v1.Node) {
|
||||||
node.Name = "testNewNode"
|
node.Annotations = map[string]string{
|
||||||
|
"updatedBy": "test",
|
||||||
|
}
|
||||||
})
|
})
|
||||||
success, err := conditionFunction()
|
success, err := conditionFunction()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user