diff --git a/internal/mode/static/state/graph/reference_grant_test.go b/internal/mode/static/state/graph/reference_grant_test.go index 41d2615ec9..c8ac49f82e 100644 --- a/internal/mode/static/state/graph/reference_grant_test.go +++ b/internal/mode/static/state/graph/reference_grant_test.go @@ -162,6 +162,7 @@ func TestReferenceGrantResolver(t *testing.T) { resolver := newReferenceGrantResolver(refGrants) for _, test := range tests { + test := test t.Run(test.msg, func(t *testing.T) { t.Parallel() @@ -414,6 +415,7 @@ func TestRefAllowedFrom(t *testing.T) { } for _, test := range tests { + test := test t.Run(test.name, func(t *testing.T) { t.Parallel() diff --git a/internal/mode/static/state/graph/tlsroute_test.go b/internal/mode/static/state/graph/tlsroute_test.go index edd6536ace..d67d638bf1 100644 --- a/internal/mode/static/state/graph/tlsroute_test.go +++ b/internal/mode/static/state/graph/tlsroute_test.go @@ -551,6 +551,7 @@ func TestBuildTLSRoute(t *testing.T) { } for _, test := range tests { + test := test t.Run(test.name, func(t *testing.T) { g := NewWithT(t) t.Parallel()