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