From 194b2231d62d77f44b66817e26f831417d0dc683 Mon Sep 17 00:00:00 2001 From: Justen Walker Date: Mon, 14 May 2018 14:23:48 -0400 Subject: [PATCH] driver/docker: fix up TestParseDockerImage --- client/driver/docker_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/driver/docker_test.go b/client/driver/docker_test.go index e3ff2943d..388d0bcd6 100644 --- a/client/driver/docker_test.go +++ b/client/driver/docker_test.go @@ -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) }) } }