Skip to content

Commit 3b526c3

Browse files
committed
fix:ci-test
1 parent 7387e0d commit 3b526c3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ public void testPostHookExecutionOnStop() {
2525
GenericContainer<?> container = new GenericContainer<>(
2626
new ImageFromDockerfile()
2727
.withFileFromString("entrypoint.sh", scriptContent)
28-
.withDockerfileFromBuilder(builder ->
28+
.withDockerfileFromBuilder(builder -> {
2929
builder
3030
.from("alpine:3.18")
3131
.run("apk add --no-cache tini bash")
3232
.copy("entrypoint.sh", "/entrypoint.sh")
3333
.run("chmod +x /entrypoint.sh")
3434
.entryPoint("/sbin/tini", "--", "/entrypoint.sh")
35-
.build()
36-
)
35+
.build();
36+
})
3737
)
3838
) {
3939
ToStringConsumer logConsumer = new ToStringConsumer();
4040
container.withLogConsumer(logConsumer);
41-
41+
4242
container.withStartupTimeout(Duration.ofSeconds(30));
4343

4444
container.start();
@@ -48,8 +48,7 @@ public void testPostHookExecutionOnStop() {
4848
String logs = logConsumer.toUtf8String();
4949
System.out.println("=== CONTAINER LOGS ===\n" + logs + "\n======================");
5050

51-
assertThat(logs)
52-
.contains("HOOK_TRIGGERED");
51+
assertThat(logs).contains("HOOK_TRIGGERED");
5352
}
5453
}
55-
}
54+
}

0 commit comments

Comments
 (0)