Fix setting backend -Xmx for linux smoke tests (#5817)

This commit is contained in:
Lauri Tulmin 2022-04-13 19:45:47 +03:00 committed by GitHub
parent fd5c7c5b23
commit 31ef95d2b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,6 +40,7 @@ public class LinuxTestContainerManager extends AbstractTestContainerManager {
DockerImageName.parse(
"ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-fake-backend:20220411.2147767274"))
.withExposedPorts(BACKEND_PORT)
.withEnv("JAVA_TOOL_OPTIONS", "-Xmx128m")
.waitingFor(Wait.forHttp("/health").forPort(BACKEND_PORT))
.withNetwork(network)
.withNetworkAliases(BACKEND_ALIAS)
@ -88,7 +89,6 @@ public class LinuxTestContainerManager extends AbstractTestContainerManager {
new GenericContainer<>(DockerImageName.parse(targetImageName))
.withStartupTimeout(Duration.ofMinutes(5))
.withExposedPorts(ports.toArray(new Integer[0]))
.withEnv("JAVA_TOOL_OPTIONS", "-Xmx128m")
.withNetwork(network)
.withLogConsumer(output)
.withLogConsumer(new Slf4jLogConsumer(appLogger))