driver/docker: fix up TestParseDockerImage
This commit is contained in:
parent
25b2807ce3
commit
194b2231d6
|
@ -2497,12 +2497,8 @@ func TestParseDockerImage(t *testing.T) {
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
t.Run(test.Image, func(t *testing.T) {
|
t.Run(test.Image, func(t *testing.T) {
|
||||||
repo, tag := parseDockerImage(test.Image)
|
repo, tag := parseDockerImage(test.Image)
|
||||||
if repo != test.Repo {
|
require.Equal(t, test.Repo, repo)
|
||||||
t.Errorf("expected repo '%s' but got '%s'", test.Repo, repo)
|
require.Equal(t, test.Tag, tag)
|
||||||
}
|
|
||||||
if repo != test.Repo {
|
|
||||||
t.Errorf("expected tag '%s' but got '%s'", test.Tag, tag)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue