File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1166,9 +1166,11 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
1166
1166
Name : secret .Name ,
1167
1167
}
1168
1168
1169
+ oldGen := obj .GetGeneration ()
1169
1170
g .Expect (testEnv .Update (ctx , obj )).To (Succeed ())
1171
+ newGen := oldGen + 1
1170
1172
1171
- // Wait for HelmRepository to be Ready
1173
+ // Wait for HelmRepository to be Ready with new generation.
1172
1174
g .Eventually (func () bool {
1173
1175
if err := testEnv .Get (ctx , key , obj ); err != nil {
1174
1176
return false
@@ -1178,8 +1180,8 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
1178
1180
}
1179
1181
readyCondition := conditions .Get (obj , meta .ReadyCondition )
1180
1182
return readyCondition .Status == metav1 .ConditionTrue &&
1181
- obj . Generation == readyCondition .ObservedGeneration &&
1182
- obj . Generation == obj .Status .ObservedGeneration
1183
+ newGen == readyCondition .ObservedGeneration &&
1184
+ newGen == obj .Status .ObservedGeneration
1183
1185
}, timeout ).Should (BeTrue ())
1184
1186
1185
1187
// Check if the object status is valid.
You can’t perform that action at this time.
0 commit comments