summaryrefslogtreecommitdiffstats
path: root/config/src/test
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2020-05-18 20:15:08 +0200
committerGitHub <noreply@github.com>2020-05-18 20:15:08 +0200
commitde17dc402a0364780205bb4afffbd25d27059fcb (patch)
treeaa02b1e1e4579bc19855b136ed32adfe4944623b /config/src/test
parentf0fd6a1ab95632f1d05ae576f0449ea92576150f (diff)
Revert "Swith to a new connection if possible when asked to do so"
Diffstat (limited to 'config/src/test')
-rw-r--r--config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java b/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java
index 56f40daf0fd..cc46301e869 100644
--- a/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java
+++ b/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java
@@ -29,7 +29,7 @@ public class JRTConnectionPoolTest {
Map<String, Integer> sourceOccurrences = new HashMap<>();
for (int i = 0; i < 1000; i++) {
- final String address = sourcePool.switchConnection().getAddress();
+ final String address = sourcePool.setNewCurrentConnection().getAddress();
if (sourceOccurrences.containsKey(address)) {
sourceOccurrences.put(address, sourceOccurrences.get(address) + 1);
} else {
@@ -57,7 +57,7 @@ public class JRTConnectionPoolTest {
int count = 1000;
for (int i = 0; i < count; i++) {
- String address = sourcePool.switchConnection().getAddress();
+ String address = sourcePool.setNewCurrentConnection().getAddress();
if (timesUsed.containsKey(address)) {
int times = timesUsed.get(address);
timesUsed.put(address, times + 1);