Merge pull request #99488 from chymy/rc-test-bug

Fix pkg/controller/replicaset/replica_set_test.go variable reference error
This commit is contained in:
Kubernetes Prow Robot 2022-03-26 11:45:21 -07:00 committed by GitHub
commit 13ebb2e757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1302,10 +1302,10 @@ func TestExpectationsOnRecreate(t *testing.T) {
t.Fatal(err)
}
if !exists {
t.Errorf("No expectations found for ReplicaSet %q", oldRSKey)
t.Errorf("No expectations found for ReplicaSet %q", newRSKey)
}
if rsExp.Fulfilled() {
t.Errorf("There should be unfulfilled expectations for creating new pods for ReplicaSet %q", oldRSKey)
t.Errorf("There should be unfulfilled expectations for creating new pods for ReplicaSet %q", newRSKey)
}
err = validateSyncReplicaSet(&fakePodControl, 1, 0, 0)