浏览代码

Update error message for Windows

Signed-off-by: aiordache <[email protected]>
aiordache 4 年之前
父节点
当前提交
34df3caaaf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      local/e2e/cli-only/e2e_test.go

+ 1 - 1
local/e2e/cli-only/e2e_test.go

@@ -398,7 +398,7 @@ func TestLegacy(t *testing.T) {
 	t.Run("host flag", func(t *testing.T) {
 	t.Run("host flag", func(t *testing.T) {
 		stderr := "dial tcp: lookup nonexistent"
 		stderr := "dial tcp: lookup nonexistent"
 		if runtime.GOOS == "windows" {
 		if runtime.GOOS == "windows" {
-			stderr = "error during connect: Get http://nonexitent:123"
+			stderr = "dial tcp: lookup nonexistent: no such host"
 		}
 		}
 		res := c.RunDockerOrExitError("-H", "tcp://nonexistent:123", "version")
 		res := c.RunDockerOrExitError("-H", "tcp://nonexistent:123", "version")
 		res.Assert(t, icmd.Expected{
 		res.Assert(t, icmd.Expected{