Unverified Commit 197fc676 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #72215 from caesarxuchao/minor-test-fix

Fix the unit test patch to not modify the node name
parents 8626cb94 7223f0fd
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment