@@ -94,7 +94,7 @@ func TestHelmRepositoryReconciler_Reconcile(t *testing.T) {
94
94
// Check if the object status is valid.
95
95
condns := & conditionscheck.Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
96
96
checker := conditionscheck .NewChecker (testEnv .Client , condns )
97
- checker .CheckErr (ctx , obj )
97
+ checker .WithT ( g ). CheckErr (ctx , obj )
98
98
99
99
// kstatus client conformance check.
100
100
u , err := patch .ToUnstructured (obj )
@@ -292,7 +292,7 @@ func TestHelmRepositoryReconciler_reconcileStorage(t *testing.T) {
292
292
293
293
// In-progress status condition validity.
294
294
checker := conditionscheck .NewInProgressChecker (r .Client )
295
- checker .CheckErr (ctx , obj )
295
+ checker .WithT ( g ). CheckErr (ctx , obj )
296
296
})
297
297
}
298
298
}
@@ -746,7 +746,7 @@ func TestHelmRepositoryReconciler_reconcileSource(t *testing.T) {
746
746
747
747
// In-progress status condition validity.
748
748
checker := conditionscheck .NewInProgressChecker (r .Client )
749
- checker .CheckErr (ctx , obj )
749
+ checker .WithT ( g ). CheckErr (ctx , obj )
750
750
})
751
751
}
752
752
}
@@ -1278,7 +1278,7 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
1278
1278
// Check if the object status is valid.
1279
1279
condns := & conditionscheck.Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1280
1280
checker := conditionscheck .NewChecker (testEnv .Client , condns )
1281
- checker .CheckErr (ctx , obj )
1281
+ checker .WithT ( g ). CheckErr (ctx , obj )
1282
1282
1283
1283
// kstatus client conformance check.
1284
1284
u , err := patch .ToUnstructured (obj )
@@ -1330,7 +1330,7 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
1330
1330
// Check if the object status is valid.
1331
1331
condns = & conditionscheck.Conditions {NegativePolarity : helmRepositoryOCINegativeConditions }
1332
1332
checker = conditionscheck .NewChecker (testEnv .Client , condns )
1333
- checker .CheckErr (ctx , obj )
1333
+ checker .WithT ( g ). CheckErr (ctx , obj )
1334
1334
1335
1335
g .Expect (testEnv .Delete (ctx , obj )).To (Succeed ())
1336
1336
@@ -1395,7 +1395,7 @@ func TestHelmRepositoryReconciler_ReconcileSpecUpdatePredicateFilter(t *testing.
1395
1395
// Check if the object status is valid.
1396
1396
condns := & conditionscheck.Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1397
1397
checker := conditionscheck .NewChecker (testEnv .Client , condns )
1398
- checker .CheckErr (ctx , obj )
1398
+ checker .WithT ( g ). CheckErr (ctx , obj )
1399
1399
1400
1400
// kstatus client conformance check.
1401
1401
u , err := patch .ToUnstructured (obj )
@@ -1427,7 +1427,7 @@ func TestHelmRepositoryReconciler_ReconcileSpecUpdatePredicateFilter(t *testing.
1427
1427
// Check if the object status is valid.
1428
1428
condns = & conditionscheck.Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1429
1429
checker = conditionscheck .NewChecker (testEnv .Client , condns )
1430
- checker .CheckErr (ctx , obj )
1430
+ checker .WithT ( g ). CheckErr (ctx , obj )
1431
1431
1432
1432
g .Expect (testEnv .Delete (ctx , obj )).To (Succeed ())
1433
1433
0 commit comments