driver/docker: fix up TestParseDockerImage

This commit is contained in:
Justen Walker 2018-05-14 14:23:48 -04:00
parent 25b2807ce3
commit 194b2231d6
1 changed files with 2 additions and 6 deletions

View File

@ -2497,12 +2497,8 @@ func TestParseDockerImage(t *testing.T) {
for _, test := range tests {
t.Run(test.Image, func(t *testing.T) {
repo, tag := parseDockerImage(test.Image)
if repo != test.Repo {
t.Errorf("expected repo '%s' but got '%s'", test.Repo, repo)
}
if repo != test.Repo {
t.Errorf("expected tag '%s' but got '%s'", test.Tag, tag)
}
require.Equal(t, test.Repo, repo)
require.Equal(t, test.Tag, tag)
})
}
}