File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,6 @@ func TestOptions(t *testing.T) {
187
187
}
188
188
189
189
func TestCleanTrustPolicy (t * testing.T ) {
190
- g := NewWithT (t )
191
-
192
190
testCases := []struct {
193
191
name string
194
192
policy []trustpolicy.TrustPolicy
@@ -326,6 +324,8 @@ func TestCleanTrustPolicy(t *testing.T) {
326
324
// Run the test cases
327
325
for _ , tc := range testCases {
328
326
t .Run (tc .name , func (t * testing.T ) {
327
+ g := NewWithT (t )
328
+
329
329
l := & testLogger {[]string {}, logr.RuntimeInfo {CallDepth : 1 }}
330
330
logger := logr .New (l )
331
331
@@ -461,8 +461,6 @@ func TestOutcomeChecker(t *testing.T) {
461
461
}
462
462
463
463
func TestRepoUrlWithDigest (t * testing.T ) {
464
- g := NewWithT (t )
465
-
466
464
testCases := []struct {
467
465
name string
468
466
repoUrl string
@@ -499,6 +497,8 @@ func TestRepoUrlWithDigest(t *testing.T) {
499
497
// Run the test cases
500
498
for _ , tc := range testCases {
501
499
t .Run (tc .name , func (t * testing.T ) {
500
+ g := NewWithT (t )
501
+
502
502
l := & testLogger {[]string {}, logr.RuntimeInfo {CallDepth : 1 }}
503
503
logger := logr .New (l )
504
504
You can’t perform that action at this time.
0 commit comments