mirror of
https://github.com/docker/compose.git
synced 2026-10-08 21:21:10 +00:00
test fix
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
f0fd18eec9
commit
6458b97089
3 changed files with 19 additions and 30 deletions
|
|
@ -396,15 +396,15 @@ func TestLegacy(t *testing.T) {
|
|||
})
|
||||
|
||||
t.Run("host flag", func(t *testing.T) {
|
||||
stderr := "nonexistent: Name or service not known"
|
||||
stderr := "dial tcp: lookup nonexistent"
|
||||
if runtime.GOOS == "windows" {
|
||||
stderr = "error during connect: Get http://nonexitent:123"
|
||||
}
|
||||
res := c.RunDockerOrExitError("-H", "tcp://nonexistent:123", "version")
|
||||
res.Assert(t, icmd.Expected{
|
||||
ExitCode: 1,
|
||||
Err: stderr,
|
||||
})
|
||||
assert.Assert(t, strings.Contains(res.Stderr(), stderr), res.Stderr())
|
||||
})
|
||||
|
||||
t.Run("existing contexts delegate", func(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue