Skip to content

Commit

Permalink
Fix selenium port mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Jan 9, 2024
1 parent a0c4f0d commit 713007d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/client-api/client-api.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand All @@ -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',
Expand Down

0 comments on commit 713007d

Please sign in to comment.