File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
x-pack/test/smb-fixture/src/main/java/org/elasticsearch/test/fixtures/smb Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1414import org .testcontainers .containers .wait .strategy .WaitAllStrategy ;
1515import org .testcontainers .images .builder .ImageFromDockerfile ;
1616
17+ import java .time .Duration ;
18+
1719public final class SmbTestContainer extends DockerEnvironmentAwareTestContainer {
1820
1921 private static final String DOCKER_BASE_IMAGE = "ubuntu:24.04" ;
@@ -46,7 +48,9 @@ public SmbTestContainer() {
4648 addExposedPort (AD_LDAP_GC_PORT );
4749
4850 setWaitStrategy (
49- new WaitAllStrategy ().withStrategy (Wait .forLogMessage (".*Samba started.*" , 1 )).withStrategy (Wait .forListeningPort ())
51+ new WaitAllStrategy ().withStartupTimeout (Duration .ofSeconds (120 ))
52+ .withStrategy (Wait .forLogMessage (".*Samba started.*" , 1 ))
53+ .withStrategy (Wait .forListeningPort ())
5054 );
5155
5256 getCreateContainerCmdModifiers ().add (createContainerCmd -> {
You can’t perform that action at this time.
0 commit comments