Skip to content

Commit f6f37ad

Browse files
committed
Fix TestWaitForRunningDeploymentSuccess race
1 parent b75bee4 commit f6f37ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apps/registry/rest_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func TestWaitForRunningDeploymentSuccess(t *testing.T) {
1818
fakeController := &kapi.ReplicationController{}
1919
fakeController.Name = "test-1"
2020
fakeController.Namespace = "test"
21+
fakeController.Annotations = map[string]string{deployapi.DeploymentStatusAnnotation: string(deployapi.DeploymentStatusRunning)}
2122

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

41-
fakeController.Annotations = map[string]string{deployapi.DeploymentStatusAnnotation: string(deployapi.DeploymentStatusRunning)}
4242
fakeWatch.Modify(fakeController)
4343
<-stopChan
4444
}

0 commit comments

Comments
 (0)