Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix TestWaitForRunningDeploymentSuccess race
  • Loading branch information
tnozicka authored and cherrypicker committed Dec 5, 2017
commit 7eb3628de136de2816cb0d7f26150d003ed8359d
2 changes: 1 addition & 1 deletion pkg/apps/registry/rest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func TestWaitForRunningDeploymentSuccess(t *testing.T) {
fakeController := &kapi.ReplicationController{}
fakeController.Name = "test-1"
fakeController.Namespace = "test"
fakeController.Annotations = map[string]string{deployapi.DeploymentStatusAnnotation: string(deployapi.DeploymentStatusRunning)}

kubeclient := fake.NewSimpleClientset([]runtime.Object{fakeController}...)
fakeWatch := watch.NewFake()
Expand All @@ -38,7 +39,6 @@ func TestWaitForRunningDeploymentSuccess(t *testing.T) {
}
}()

fakeController.Annotations = map[string]string{deployapi.DeploymentStatusAnnotation: string(deployapi.DeploymentStatusRunning)}
fakeWatch.Modify(fakeController)
<-stopChan
}
Expand Down