File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ var _ = Describe("ClusterServiceVersion", func() {
69
69
Name : "test-namespace-1" ,
70
70
},
71
71
}
72
- Expect (ctx .Ctx ().Client ().Create (context .Background (), & ns )).To (Succeed ())
72
+ Eventually (func () error {
73
+ return ctx .Ctx ().Client ().Create (context .Background (), & ns )
74
+ }).Should (Succeed ())
73
75
74
76
og := v1.OperatorGroup {
75
77
ObjectMeta : metav1.ObjectMeta {
@@ -80,7 +82,9 @@ var _ = Describe("ClusterServiceVersion", func() {
80
82
TargetNamespaces : []string {ns .GetName ()},
81
83
},
82
84
}
83
- Expect (ctx .Ctx ().Client ().Create (context .TODO (), & og )).To (Succeed ())
85
+ Eventually (func () error {
86
+ return ctx .Ctx ().Client ().Create (context .Background (), & og )
87
+ }).Should (Succeed ())
84
88
85
89
crd = apiextensionsv1.CustomResourceDefinition {
86
90
ObjectMeta : metav1.ObjectMeta {
@@ -110,7 +114,9 @@ var _ = Describe("ClusterServiceVersion", func() {
110
114
}},
111
115
},
112
116
}
113
- Expect (ctx .Ctx ().Client ().Create (context .Background (), & crd )).To (Succeed ())
117
+ Eventually (func () error {
118
+ return ctx .Ctx ().Client ().Create (context .Background (), & crd )
119
+ }).Should (Succeed ())
114
120
})
115
121
116
122
AfterEach (func () {
You can’t perform that action at this time.
0 commit comments