mirror of
https://github.com/docker/compose.git
synced 2025-07-28 08:04:09 +02:00
tests.e2e: Check Windows specific error
Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
parent
6405256752
commit
65fb6020a0
@ -315,10 +315,14 @@ func TestLegacy(t *testing.T) {
|
|||||||
|
|
||||||
t.Run("host flag", func(t *testing.T) {
|
t.Run("host flag", func(t *testing.T) {
|
||||||
t.Parallel()
|
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 := c.RunDockerCmd("-H", "tcp://localhost:123", "version")
|
||||||
res.Assert(t, icmd.Expected{
|
res.Assert(t, icmd.Expected{
|
||||||
ExitCode: 1,
|
ExitCode: 1,
|
||||||
Err: "Cannot connect to the Docker daemon at tcp://localhost:123",
|
Err: stderr,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user