Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Use localhost instead of 127.0.0.1 as server address in runner (#152)
Browse files Browse the repository at this point in the history
## What is the goal of this PR?

We change the default host from 127.0.0.1 to localhost.
  • Loading branch information
dmitrii-ubskii authored Sep 21, 2023
1 parent 6e18efc commit 40f8ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/cluster/TypeDBClusterRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private static Set<Addresses> allocateAddressesSet(int serverCount) {
Set<Addresses> addresses = new HashSet<>();
List<Integer> 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);
Expand Down
2 changes: 1 addition & 1 deletion test/core/TypeDBCoreRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public String address() {
}

public String host() {
return "127.0.0.1";
return "localhost";
}

public int port() {
Expand Down

0 comments on commit 40f8ab7

Please sign in to comment.