From 713007d368390f17cb0b9d916c503abd8505c685 Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Tue, 9 Jan 2024 16:10:50 -0600 Subject: [PATCH] Fix selenium port mapping --- web/client-api/client-api.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/client-api/client-api.gradle b/web/client-api/client-api.gradle index 5aa62ba42bd..deae2f32c9c 100644 --- a/web/client-api/client-api.gradle +++ b/web/client-api/client-api.gradle @@ -113,7 +113,7 @@ def createSelenium = tasks.register('createSelenium', DockerCreateContainer) { t // This provides a hostname that can be referenced from inside the docker container to access the host // OS, and connect to the test server. t.hostConfig.extraHosts.add('host.docker.internal:host-gateway') - t.hostConfig.portBindings.set(["4444:$seleniumPort"]) + t.hostConfig.portBindings.set(["$seleniumPort:4444"]) t.hostConfig.network.set(deephavenDocker.networkName.get()) } def startSelenium = tasks.register('startSelenium', DockerStartContainer) {t -> @@ -139,7 +139,7 @@ def gwtIntegrationTest = tasks.register('gwtIntegrationTest', Test) { t -> t.dependsOn(deephavenDocker.portTask, seleniumHealthy) t.finalizedBy(deephavenDocker.endTask, stopSelenium) doFirst { - def webdriverUrl = 'http://localhost:4444/' + def webdriverUrl = "http://localhost:${seleniumPort}/" t.systemProperty('gwt.args', ["-runStyle io.deephaven.web.junit.RunStyleRemoteWebDriver:${webdriverUrl}?firefox", '-ea', '-style PRETTY',