File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 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.
11661166 Name : secret .Name ,
11671167 }
11681168
1169+ oldGen := obj .GetGeneration ()
11691170 g .Expect (testEnv .Update (ctx , obj )).To (Succeed ())
1171+ newGen := oldGen + 1
11701172
1171- // Wait for HelmRepository to be Ready
1173+ // Wait for HelmRepository to be Ready with new generation.
11721174 g .Eventually (func () bool {
11731175 if err := testEnv .Get (ctx , key , obj ); err != nil {
11741176 return false
@@ -1178,8 +1180,8 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
11781180 }
11791181 readyCondition := conditions .Get (obj , meta .ReadyCondition )
11801182 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
11831185 }, timeout ).Should (BeTrue ())
11841186
11851187 // Check if the object status is valid.
You can’t perform that action at this time.
0 commit comments