Skip to content

Commit 54d3c3c

Browse files
test(notation): move g in remaining tests
Signed-off-by: Jason <[email protected]>
1 parent ca2662d commit 54d3c3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/oci/notation/notation_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ func TestOptions(t *testing.T) {
187187
}
188188

189189
func TestCleanTrustPolicy(t *testing.T) {
190-
g := NewWithT(t)
191-
192190
testCases := []struct {
193191
name string
194192
policy []trustpolicy.TrustPolicy
@@ -326,6 +324,8 @@ func TestCleanTrustPolicy(t *testing.T) {
326324
// Run the test cases
327325
for _, tc := range testCases {
328326
t.Run(tc.name, func(t *testing.T) {
327+
g := NewWithT(t)
328+
329329
l := &testLogger{[]string{}, logr.RuntimeInfo{CallDepth: 1}}
330330
logger := logr.New(l)
331331

@@ -461,8 +461,6 @@ func TestOutcomeChecker(t *testing.T) {
461461
}
462462

463463
func TestRepoUrlWithDigest(t *testing.T) {
464-
g := NewWithT(t)
465-
466464
testCases := []struct {
467465
name string
468466
repoUrl string
@@ -499,6 +497,8 @@ func TestRepoUrlWithDigest(t *testing.T) {
499497
// Run the test cases
500498
for _, tc := range testCases {
501499
t.Run(tc.name, func(t *testing.T) {
500+
g := NewWithT(t)
501+
502502
l := &testLogger{[]string{}, logr.RuntimeInfo{CallDepth: 1}}
503503
logger := logr.New(l)
504504

0 commit comments

Comments
 (0)