Skip to content

Commit 171b141

Browse files
committed
attempt to make activemq startup detect better
1 parent 7fca8ca commit 171b141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/target_systems/ActiveMqIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected GenericContainer<?> createTargetContainer(int jmxPort) {
2525
builder -> builder.from("apache/activemq-classic:5.18.6").build()))
2626
.withEnv("JAVA_TOOL_OPTIONS", genericJmxJvmArguments(jmxPort))
2727
.withStartupTimeout(Duration.ofMinutes(2))
28-
.waitingFor(Wait.forListeningPort());
28+
.waitingFor(Wait.forLogMessage(".*Apache ActiveMQ.*started.*", 1));
2929
}
3030

3131
@Override

0 commit comments

Comments
 (0)