File tree Expand file tree Collapse file tree 1 file changed +6
-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 +6
-1
lines changed Original file line number Diff line number Diff line change 1111
1212import org .elasticsearch .test .fixtures .testcontainers .DockerEnvironmentAwareTestContainer ;
1313import org .testcontainers .containers .wait .strategy .Wait ;
14+ import org .testcontainers .containers .wait .strategy .WaitAllStrategy ;
1415import org .testcontainers .images .builder .ImageFromDockerfile ;
1516
1617public final class SmbTestContainer extends DockerEnvironmentAwareTestContainer {
@@ -44,7 +45,11 @@ public SmbTestContainer() {
4445 addExposedPort (AD_LDAP_PORT );
4546 addExposedPort (AD_LDAP_GC_PORT );
4647
47- setWaitStrategy (Wait .forLogMessage (".*Samba started.*" , 1 ));
48+ setWaitStrategy (
49+ new WaitAllStrategy ()
50+ .withStrategy (Wait .forLogMessage (".*Samba started.*" , 1 ))
51+ .withStrategy (Wait .forListeningPort ())
52+ );
4853
4954 getCreateContainerCmdModifiers ().add (createContainerCmd -> {
5055 createContainerCmd .getHostConfig ().withCapAdd (Capability .SYS_ADMIN );
You can’t perform that action at this time.
0 commit comments