Fix setting backend -Xmx for linux smoke tests (#5817)
This commit is contained in:
parent
fd5c7c5b23
commit
31ef95d2b0
|
@ -40,6 +40,7 @@ public class LinuxTestContainerManager extends AbstractTestContainerManager {
|
||||||
DockerImageName.parse(
|
DockerImageName.parse(
|
||||||
"ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-fake-backend:20220411.2147767274"))
|
"ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-fake-backend:20220411.2147767274"))
|
||||||
.withExposedPorts(BACKEND_PORT)
|
.withExposedPorts(BACKEND_PORT)
|
||||||
|
.withEnv("JAVA_TOOL_OPTIONS", "-Xmx128m")
|
||||||
.waitingFor(Wait.forHttp("/health").forPort(BACKEND_PORT))
|
.waitingFor(Wait.forHttp("/health").forPort(BACKEND_PORT))
|
||||||
.withNetwork(network)
|
.withNetwork(network)
|
||||||
.withNetworkAliases(BACKEND_ALIAS)
|
.withNetworkAliases(BACKEND_ALIAS)
|
||||||
|
@ -88,7 +89,6 @@ public class LinuxTestContainerManager extends AbstractTestContainerManager {
|
||||||
new GenericContainer<>(DockerImageName.parse(targetImageName))
|
new GenericContainer<>(DockerImageName.parse(targetImageName))
|
||||||
.withStartupTimeout(Duration.ofMinutes(5))
|
.withStartupTimeout(Duration.ofMinutes(5))
|
||||||
.withExposedPorts(ports.toArray(new Integer[0]))
|
.withExposedPorts(ports.toArray(new Integer[0]))
|
||||||
.withEnv("JAVA_TOOL_OPTIONS", "-Xmx128m")
|
|
||||||
.withNetwork(network)
|
.withNetwork(network)
|
||||||
.withLogConsumer(output)
|
.withLogConsumer(output)
|
||||||
.withLogConsumer(new Slf4jLogConsumer(appLogger))
|
.withLogConsumer(new Slf4jLogConsumer(appLogger))
|
||||||
|
|
Loading…
Reference in New Issue