Skip to content

Commit 66e4da9

Browse files
committed
Wait for S3Mock to stop.
1 parent 2b59753 commit 66e4da9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testsupport/testcontainers/src/test/java/com/adobe/testing/s3mock/testcontainers/S3MockContainerRestartOnRootfolderTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.adobe.testing.s3mock.testcontainers;
1818

1919
import java.io.File;
20+
import java.util.concurrent.TimeUnit;
2021
import org.junit.jupiter.api.AfterEach;
2122
import org.junit.jupiter.api.BeforeEach;
2223
import org.junit.jupiter.api.io.TempDir;
@@ -46,7 +47,8 @@ void setUp() {
4647
}
4748

4849
@AfterEach
49-
void tearDown() {
50+
void tearDown() throws InterruptedException {
5051
s3Mock.stop();
52+
TimeUnit.SECONDS.sleep(5);
5153
}
5254
}

0 commit comments

Comments
 (0)