Deployment controller's cleanupUnhealthyReplicas should respect minReadySeconds

This commit is contained in:
Janet Kuo
2016-06-20 13:52:19 -07:00
parent a3f09700e5
commit 726ba45b59
2 changed files with 6 additions and 6 deletions

View File

@@ -476,7 +476,7 @@ func TestDeploymentController_cleanupUnhealthyReplicas(t *testing.T) {
client: &fakeClientset,
eventRecorder: &record.FakeRecorder{},
}
_, cleanupCount, err := controller.cleanupUnhealthyReplicas(oldRSs, &deployment, int32(test.maxCleanupCount))
_, cleanupCount, err := controller.cleanupUnhealthyReplicas(oldRSs, &deployment, 0, int32(test.maxCleanupCount))
if err != nil {
t.Errorf("unexpected error: %v", err)
continue