Skip to content

Commit

Permalink
Fix TestWaitForRunningDeploymentSuccess race
Browse files Browse the repository at this point in the history
  • Loading branch information
tnozicka committed Nov 29, 2017
1 parent b75bee4 commit f6f37ad
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit f6f37ad

Please sign in to comment.