Slightly better tests

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
Guillaume Tardif 2020-12-14 17:56:05 +01:00
parent d127cac6d4
commit 0e319ae65a
2 changed files with 5 additions and 5 deletions

View File

@ -138,8 +138,8 @@ func TestLocalComposeRun(t *testing.T) {
})
t.Run("compose run --rm", func(t *testing.T) {
res := c.RunDockerCmd("compose", "run", "-f", "./fixtures/run-test/docker-compose.yml", "--rm", "back")
res.Assert(t, icmd.Expected{Out: "Hello there!!"})
res := c.RunDockerCmd("compose", "run", "-f", "./fixtures/run-test/docker-compose.yml", "--rm", "back", "echo", "Hello again")
res.Assert(t, icmd.Expected{Out: "Hello again"})
})
t.Run("check run container removed", func(t *testing.T) {

View File

@ -18,7 +18,7 @@ services:
networks:
- frontnet
networks:
frontnet: {}
backnet: {}
frontnet:
backnet:
volumes:
data: {}
data: