From 65fb6020a03ab11685752ab5b70f311543cb5a65 Mon Sep 17 00:00:00 2001 From: Chris Crone Date: Mon, 10 Aug 2020 15:06:20 +0200 Subject: [PATCH] tests.e2e: Check Windows specific error Signed-off-by: Chris Crone --- tests/e2e/e2e_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index c7ac646f..8a937618 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -315,10 +315,14 @@ func TestLegacy(t *testing.T) { t.Run("host flag", func(t *testing.T) { t.Parallel() + stderr := "Cannot connect to the Docker daemon at tcp://localhost:123" + if runtime.GOOS == "windows" { + stderr = "error during connect: Get http://localhost:123" + } res := c.RunDockerCmd("-H", "tcp://localhost:123", "version") res.Assert(t, icmd.Expected{ ExitCode: 1, - Err: "Cannot connect to the Docker daemon at tcp://localhost:123", + Err: stderr, }) })