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

Fix the unit test patch to not modify the node name
pull/564/head
Kubernetes Prow Robot 2018-12-25 19:57:09 -08:00 committed by GitHub
commit 197fc67693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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 {