Skip to content

Commit

Permalink
(#25) Make tests more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Apr 16, 2020
1 parent 4807a91 commit 80f3758
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestLocalDockerComposeWithEnvironment(t *testing.T) {
err := compose.
WithCommand([]string{"up", "-d"}).
WithEnv(map[string]string{
"foo": "BAR",
"bar": "BAR",
}).
Invoke()
checkIfError(t, err)
Expand Down Expand Up @@ -78,8 +78,8 @@ func TestLocalDockerComposeWithMultipleComposeFiles(t *testing.T) {
err := compose.
WithCommand([]string{"up", "-d"}).
WithEnv(map[string]string{
"foo": "BAR",
"bar": "FOO",
"bar": "BAR",
"foo": "FOO",
}).
Invoke()
checkIfError(t, err)
Expand Down
4 changes: 2 additions & 2 deletions testresources/docker-compose-override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ services:
nginx:
image: nginx:stable-alpine
environment:
bar: ${foo}
foo: ${bar}
bar: ${bar}
foo: ${foo}
2 changes: 1 addition & 1 deletion testresources/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ services:
nginx:
image: nginx:stable-alpine
environment:
bar: ${foo}
bar: ${bar}

0 comments on commit 80f3758

Please sign in to comment.