Update error message for Windows

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2021-03-05 15:44:01 +01:00
parent 6458b97089
commit 34df3caaaf
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ func TestLegacy(t *testing.T) {
t.Run("host flag", func(t *testing.T) {
stderr := "dial tcp: lookup nonexistent"
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.Assert(t, icmd.Expected{