From 40f8ab74b34447b59517ce3f027c8700a8aa057a Mon Sep 17 00:00:00 2001 From: Dmitrii Ubskii <18616863+dmitrii-ubskii@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:04:39 +0300 Subject: [PATCH] Use localhost instead of 127.0.0.1 as server address in runner (#152) ## What is the goal of this PR? We change the default host from 127.0.0.1 to localhost. --- test/cluster/TypeDBClusterRunner.java | 2 +- test/core/TypeDBCoreRunner.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cluster/TypeDBClusterRunner.java b/test/cluster/TypeDBClusterRunner.java index e6de739b..7a8c74c4 100644 --- a/test/cluster/TypeDBClusterRunner.java +++ b/test/cluster/TypeDBClusterRunner.java @@ -82,7 +82,7 @@ private static Set allocateAddressesSet(int serverCount) { Set addresses = new HashSet<>(); List ports = Util.findUnusedPorts(serverCount * 3); for (int i = 0; i < serverCount; i++) { - String host = "127.0.0.1"; + String host = "localhost"; int externalPort = ports.get(3 * i); int internalPortZMQ = ports.get(3 * i + 1); int internalPortGRPC = ports.get(3 * i + 2); diff --git a/test/core/TypeDBCoreRunner.java b/test/core/TypeDBCoreRunner.java index 6be2c1a1..26519835 100644 --- a/test/core/TypeDBCoreRunner.java +++ b/test/core/TypeDBCoreRunner.java @@ -68,7 +68,7 @@ public String address() { } public String host() { - return "127.0.0.1"; + return "localhost"; } public int port() {