From 4b59896f4cf1bf137cce681dcb1ea5cf06d1906f Mon Sep 17 00:00:00 2001 From: Alvaro Date: Fri, 30 Jan 2015 10:07:55 +0200 Subject: [PATCH] Fix the tests. Not very elegant, but now the strings have an extra space to allow putting the options there. --- plugin/publish/docker_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/publish/docker_test.go b/plugin/publish/docker_test.go index a23797b5e..915d28f83 100644 --- a/plugin/publish/docker_test.go +++ b/plugin/publish/docker_test.go @@ -214,7 +214,7 @@ func TestTagsNoSingle(t *testing.T) { if !strings.Contains(response, "docker build --pull -t username/image:release-0.2") { t.Fatalf("Response: " + response + " isn't tagging images using our first custom tag\n\n") } - if !strings.Contains(response, "docker tag username/image:release-0.2 username/image:release-latest") { + if !strings.Contains(response, "docker tag username/image:release-0.2 username/image:release-latest") { t.Fatalf("Response: " + response + " isn't tagging images using our second custom tag\n\n") } if !strings.Contains(response, "docker push username/image:release-0.2") { @@ -256,10 +256,10 @@ func TestTagsWithSingle(t *testing.T) { if !strings.Contains(response, "docker build --pull -t username/image:release-0.3") { t.Fatalf("Response: " + response + " isn't tagging images using our first custom tag\n\n") } - if !strings.Contains(response, "docker tag username/image:release-0.3 username/image:release-0.2") { + if !strings.Contains(response, "docker tag username/image:release-0.3 username/image:release-0.2") { t.Fatalf("Response: " + response + " isn't tagging images using our second custom tag\n\n") } - if !strings.Contains(response, "docker tag username/image:release-0.3 username/image:release-latest") { + if !strings.Contains(response, "docker tag username/image:release-0.3 username/image:release-latest") { t.Fatalf("Response: " + response + " isn't tagging images using our third custom tag\n\n") } if !strings.Contains(response, "docker push username/image:release-0.2") {