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) { t.Run("compose run --rm", func(t *testing.T) {
res := c.RunDockerCmd("compose", "run", "-f", "./fixtures/run-test/docker-compose.yml", "--rm", "back") res := c.RunDockerCmd("compose", "run", "-f", "./fixtures/run-test/docker-compose.yml", "--rm", "back", "echo", "Hello again")
res.Assert(t, icmd.Expected{Out: "Hello there!!"}) res.Assert(t, icmd.Expected{Out: "Hello again"})
}) })
t.Run("check run container removed", func(t *testing.T) { t.Run("check run container removed", func(t *testing.T) {

View File

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