Fix pkg/controller/replicaset/replica_set_test.go variable reference error

Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
chymy 2021-02-26 03:30:06 -05:00
parent bce5d7a015
commit d2868af029

View File

@ -1274,10 +1274,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)