Skip to content

Commit

Permalink
Fix nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkozlowski committed May 3, 2016
1 parent 3dd713f commit 6f58338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,9 @@ To skip shutdown of containers after tests are finished executing:

```java
public class DockerCompositionTest {

private static final boolean SKIP_SHUTDOWN = true;

@ClassRule
public DockerComposition composition = DockerComposition.of("src/test/resources/docker-compose.yml")
.skipShutdown(SKIP_SHUTDOWN)
.skipShutdown(true)
.build();
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ public void after() {
try {
if (skipShutdown()) {
log.error("******************************************************************************************\n"
+ "******** Skipping docker-compose down/kill/rm; This should not happen on CI! *************\n"
+ "* docker-compose-rule has been configured to skip docker-compose shutdown: *\n"
+ "* this means the containers will be left running after tests finish executing. *\n"
+ "* If you see this message when running on CI it means you are potentially abandoning *\n"
+ "* long running processes and leaking resources. *\n"
+ "*******************************************************************************************");
} else {
log.debug("Killing docker-compose cluster");
Expand Down

0 comments on commit 6f58338

Please sign in to comment.