File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
exp/runtime/internal/controllers Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -119,11 +119,19 @@ func TestExtensionReconciler_Reconcile(t *testing.T) {
119
119
pausedCondition := v1beta2conditions .Get (conf , clusterv1 .PausedV1Beta2Condition )
120
120
g .Expect (pausedCondition ).ToNot (BeNil ())
121
121
g .Expect (pausedCondition .ObservedGeneration ).To (Equal (conf .Generation ))
122
- }).WithTimeout (10 * time .Second ).WithPolling (100 * time .Millisecond ).Should (Succeed ())
122
+ }).WithTimeout (15 * time .Second ).WithPolling (100 * time .Millisecond ).Should (Succeed ())
123
123
124
124
_ , err = r .Reconcile (ctx , ctrl.Request {NamespacedName : util .ObjectKey (extensionConfig )})
125
125
g .Expect (err ).ToNot (HaveOccurred ())
126
126
127
+ // Wait for discovery to complete before checking final conditions
128
+ g .Eventually (func (g Gomega ) {
129
+ updatedConfig := & runtimev1.ExtensionConfig {}
130
+ g .Expect (env .GetAPIReader ().Get (ctx , util .ObjectKey (extensionConfig ), updatedConfig )).To (Succeed ())
131
+ v1beta2Conditions := updatedConfig .GetV1Beta2Conditions ()
132
+ g .Expect (len (v1beta2Conditions )).To (BeNumerically (">=" , 2 ))
133
+ }).WithTimeout (10 * time .Second ).WithPolling (100 * time .Millisecond ).Should (Succeed ())
134
+
127
135
config := & runtimev1.ExtensionConfig {}
128
136
g .Expect (env .GetAPIReader ().Get (ctx , util .ObjectKey (extensionConfig ), config )).To (Succeed ())
129
137
You can’t perform that action at this time.
0 commit comments