Skip to content

Commit 0b374b3

Browse files
committed
Fix format
1 parent bac4dfe commit 0b374b3

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

core/src/test/java/org/testcontainers/containers/DockerComposeContainerWithServicesTest.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import java.util.stream.Collectors;
1010
import java.util.stream.Stream;
1111

12-
import static org.rnorth.visibleassertions.VisibleAssertions.assertThrows;
1312
import static org.rnorth.visibleassertions.VisibleAssertions.assertEquals;
13+
import static org.rnorth.visibleassertions.VisibleAssertions.assertThrows;
1414

1515
public class DockerComposeContainerWithServicesTest {
1616

@@ -92,17 +92,24 @@ public void testScaleInComposeFileIsRespected() {
9292

9393
@Test
9494
public void testStartupTimeoutSetsTheHighestTimeout() {
95-
assertThrows("We expect a timeout from the startup timeout", org.rnorth.ducttape.TimeoutException.class,
95+
assertThrows(
96+
"We expect a timeout from the startup timeout",
97+
org.rnorth.ducttape.TimeoutException.class,
9698
() -> {
9799
try (
98100
DockerComposeContainer<?> compose = new DockerComposeContainer<>(SIMPLE_COMPOSE_FILE)
99101
.withServices("redis")
100102
.withStartupTimeout(Duration.ofMillis(1))
101-
.withExposedService("redis", 80, Wait.forListeningPort().withStartupTimeout(Duration.ofMinutes(1)));
103+
.withExposedService(
104+
"redis",
105+
80,
106+
Wait.forListeningPort().withStartupTimeout(Duration.ofMinutes(1))
107+
);
102108
) {
103109
compose.start();
104110
}
105-
});
111+
}
112+
);
106113
}
107114

108115
private void verifyStartedContainers(final DockerComposeContainer<?> compose, final String... names) {

0 commit comments

Comments
 (0)