Skip to content

Commit 241209c

Browse files
committed
cmd line back
1 parent f51f100 commit 241209c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ protected GenericContainer<?> createTargetContainer(int jmxPort) {
2626
"/hadoop/etc/hadoop/hadoop-env.sh")
2727
.waitingFor(Wait.forListeningPort().withStartupTimeout(Duration.ofMinutes(2)))
2828
.withExposedPorts(HADOOP_PORT, jmxPort)
29+
.withCreateContainerCmdModifier(cmd -> cmd.withHostName("test-host"))
2930
.waitingFor(Wait.forListeningPorts(HADOOP_PORT, jmxPort));
3031
}
3132

0 commit comments

Comments
 (0)