Fix expectations in Deployment. Ref #19299.

This commit is contained in:
Brian Grant
2016-02-25 06:40:14 +00:00
parent e63127e0eb
commit 39f0edca75
5 changed files with 148 additions and 61 deletions

View File

@@ -819,7 +819,7 @@ func TestDeleteControllerAndExpectations(t *testing.T) {
}
// This should have no effect, since we've deleted the rc.
podExp.Seen(1, 0)
podExp.Add(-1, 0)
manager.podStore.Store.Replace(make([]interface{}, 0), "0")
manager.syncReplicationController(getKey(rc, t))
validateSyncReplication(t, &fakePodControl, 0, 0)