File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
core/src/test/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments