From 39c951267357a9c9fbefa46f517744ee702c5638 Mon Sep 17 00:00:00 2001 From: Ivan Vilata-i-Balaguer Date: Tue, 10 May 2016 15:23:22 +0200 Subject: [PATCH] Rename method to get seed node address for network stress test This one better conveys the intention of providing a new address each time it is called. --- .../test/java/io/bitsquare/p2p/network/NetworkStressTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java b/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java index ab5376e341..eb1b219c21 100644 --- a/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java +++ b/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java @@ -125,7 +125,7 @@ public class NetworkStressTest { // Create and start the seed node. seedNode = new SeedNode(testDataDir.toString()); - final NodeAddress seedNodeAddress = getSeedNodeAddress(); + final NodeAddress seedNodeAddress = newSeedNodeAddress(); final boolean useLocalhost = seedNodeAddress.hostName.equals("localhost"); final Set seedNodes = new HashSet<>(1); seedNodes.add(seedNodeAddress); // the only seed node in tests @@ -165,7 +165,7 @@ public class NetworkStressTest { } @NotNull - private static NodeAddress getSeedNodeAddress() { + private static NodeAddress newSeedNodeAddress() { // The address is only considered by ``SeedNodesRepository`` if // it ends in the digit matching the network identifier. int port;