mirror of
https://github.com/distribution/distribution.git
synced 2025-09-04 00:16:10 +00:00
reference: TestParseDockerRef: capture test in loop
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -677,6 +677,7 @@ func TestParseDockerRef(t *testing.T) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, test := range testcases {
|
for _, test := range testcases {
|
||||||
|
test := test
|
||||||
t.Run(test.name, func(t *testing.T) {
|
t.Run(test.name, func(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
normalized, err := ParseDockerRef(test.input)
|
normalized, err := ParseDockerRef(test.input)
|
||||||
|
Reference in New Issue
Block a user