mirror of
https://github.com/docker/compose.git
synced 2025-05-03 22:20:14 +02:00
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
19 lines
377 B
Go
19 lines
377 B
Go
package tests
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gotest.tools/v3/icmd"
|
|
)
|
|
|
|
func TestExitErrorCode(t *testing.T) {
|
|
cmd, cleanup, _ := dockerCli.createTestCmd()
|
|
defer cleanup()
|
|
|
|
cmd.Command = dockerCli.Command("ecs", "unknown_command")
|
|
icmd.RunCmd(cmd).Assert(t, icmd.Expected{
|
|
ExitCode: 1,
|
|
Err: "\"unknown_command\" is not a docker ecs command\nSee 'docker ecs --help'",
|
|
})
|
|
}
|