summaryrefslogtreecommitdiffstats
path: root/config/src/test
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2021-10-06 20:55:54 +0200
committerHarald Musum <musum@yahooinc.com>2021-10-06 20:55:54 +0200
commit1ea7116333f2ef811ac1b927db9477012cc56cd9 (patch)
treee32006ed3e07a7b80c1476fe962710e2e1f55327 /config/src/test
parent717082dcd93b2c158ccb815d19dbd41ded1809c4 (diff)
setError() -> switchConnection() and remove setError()
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 bfe132c9660..5c0876a2649 100644
--- a/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java
+++ b/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java
@@ -1,4 +1,4 @@
-// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config;
import com.yahoo.config.subscription.ConfigSourceSet;
@@ -160,7 +160,7 @@ public class JRTConnectionPoolTest {
}
private JRTConnection failAndGetNewConnection(JRTConnectionPool connectionPool, Connection failingConnection) {
- connectionPool.setError(failingConnection, 123);
+ connectionPool.switchConnection(failingConnection);
return connectionPool.getCurrent();
}