From af36dd698f9d66b258c1174900480ce621d9d07a Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 29 Apr 2023 18:56:57 +0200 Subject: [PATCH] reference: TestParseDockerRef: capture test in loop Signed-off-by: Sebastiaan van Stijn --- reference/normalize_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/normalize_test.go b/reference/normalize_test.go index 827366fe..90a7b3b4 100644 --- a/reference/normalize_test.go +++ b/reference/normalize_test.go @@ -677,6 +677,7 @@ func TestParseDockerRef(t *testing.T) { }, } for _, test := range testcases { + test := test t.Run(test.name, func(t *testing.T) { t.Parallel() normalized, err := ParseDockerRef(test.input)