reference: TestParseDockerRef: capture test in loop

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-04-29 18:56:57 +02:00
parent 29b5e79f82
commit af36dd698f
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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)