@@ -94,7 +94,7 @@ func TestHelmRepositoryReconciler_Reconcile(t *testing.T) {
9494 // Check if the object status is valid.
9595 condns := & conditionscheck.Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
9696 checker := conditionscheck .NewChecker (testEnv .Client , condns )
97- checker .CheckErr (ctx , obj )
97+ checker .WithT ( g ). CheckErr (ctx , obj )
9898
9999 // kstatus client conformance check.
100100 u , err := patch .ToUnstructured (obj )
@@ -292,7 +292,7 @@ func TestHelmRepositoryReconciler_reconcileStorage(t *testing.T) {
292292
293293 // In-progress status condition validity.
294294 checker := conditionscheck .NewInProgressChecker (r .Client )
295- checker .CheckErr (ctx , obj )
295+ checker .WithT ( g ). CheckErr (ctx , obj )
296296 })
297297 }
298298}
@@ -746,7 +746,7 @@ func TestHelmRepositoryReconciler_reconcileSource(t *testing.T) {
746746
747747 // In-progress status condition validity.
748748 checker := conditionscheck .NewInProgressChecker (r .Client )
749- checker .CheckErr (ctx , obj )
749+ checker .WithT ( g ). CheckErr (ctx , obj )
750750 })
751751 }
752752}
@@ -1278,7 +1278,7 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
12781278 // Check if the object status is valid.
12791279 condns := & conditionscheck.Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
12801280 checker := conditionscheck .NewChecker (testEnv .Client , condns )
1281- checker .CheckErr (ctx , obj )
1281+ checker .WithT ( g ). CheckErr (ctx , obj )
12821282
12831283 // kstatus client conformance check.
12841284 u , err := patch .ToUnstructured (obj )
@@ -1330,7 +1330,7 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
13301330 // Check if the object status is valid.
13311331 condns = & conditionscheck.Conditions {NegativePolarity : helmRepositoryOCINegativeConditions }
13321332 checker = conditionscheck .NewChecker (testEnv .Client , condns )
1333- checker .CheckErr (ctx , obj )
1333+ checker .WithT ( g ). CheckErr (ctx , obj )
13341334
13351335 g .Expect (testEnv .Delete (ctx , obj )).To (Succeed ())
13361336
@@ -1395,7 +1395,7 @@ func TestHelmRepositoryReconciler_ReconcileSpecUpdatePredicateFilter(t *testing.
13951395 // Check if the object status is valid.
13961396 condns := & conditionscheck.Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
13971397 checker := conditionscheck .NewChecker (testEnv .Client , condns )
1398- checker .CheckErr (ctx , obj )
1398+ checker .WithT ( g ). CheckErr (ctx , obj )
13991399
14001400 // kstatus client conformance check.
14011401 u , err := patch .ToUnstructured (obj )
@@ -1427,7 +1427,7 @@ func TestHelmRepositoryReconciler_ReconcileSpecUpdatePredicateFilter(t *testing.
14271427 // Check if the object status is valid.
14281428 condns = & conditionscheck.Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
14291429 checker = conditionscheck .NewChecker (testEnv .Client , condns )
1430- checker .CheckErr (ctx , obj )
1430+ checker .WithT ( g ). CheckErr (ctx , obj )
14311431
14321432 g .Expect (testEnv .Delete (ctx , obj )).To (Succeed ())
14331433
0 commit comments