localhost cannot work on kubernetes

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
olivier lamy 2020-11-02 13:06:04 +10:00
parent 1b8f3aa07a
commit 137c1e8b3a
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public class AutobahnTests
{
container.start();
Integer mappedPort = container.getMappedPort(9001);
CoreAutobahnClient.main(new String[]{"localhost", mappedPort.toString()});
CoreAutobahnClient.main(new String[]{container.getContainerIpAddress(), mappedPort.toString()});
DockerClient dockerClient = container.getDockerClient();
String containerId = container.getContainerId();