aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/tests/frtconnectionpool/frtconnectionpool.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-12-20 12:30:20 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-12-20 12:30:20 +0000
commit199e224466a88fbe88bec7b897fe61dbabf9c5f5 (patch)
tree42864b11725116d7caa0df3bed6d3e7361d2d5f9 /config/src/tests/frtconnectionpool/frtconnectionpool.cpp
parent2d82ff0d3a0f95a3b19c61e318a3cb3dfa6a2491 (diff)
- Hide private interfaces.
- Make const - Use steady_time
Diffstat (limited to 'config/src/tests/frtconnectionpool/frtconnectionpool.cpp')
-rw-r--r--config/src/tests/frtconnectionpool/frtconnectionpool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/src/tests/frtconnectionpool/frtconnectionpool.cpp b/config/src/tests/frtconnectionpool/frtconnectionpool.cpp
index 7cd385deb8e..7b3a22893ab 100644
--- a/config/src/tests/frtconnectionpool/frtconnectionpool.cpp
+++ b/config/src/tests/frtconnectionpool/frtconnectionpool.cpp
@@ -5,7 +5,6 @@
#include <vespa/fnet/frt/error.h>
#include <vespa/fnet/transport.h>
#include <vespa/fastos/thread.h>
-#include <vespa/vespalib/util/size_literals.h>
#include <sstream>
#include <set>
#include <unistd.h>
@@ -219,7 +218,7 @@ void Test::testSetErrorAllHashBased() {
void Test::testSuspensionTimeout() {
const ServerSpec spec(_sources);
FRTConnectionPool sourcePool(_transport, spec, timingValues);
- Connection* source = sourcePool.getCurrent();
+ FRTConnection* source = dynamic_cast<FRTConnection *>(sourcePool.getCurrent());
source->setTransientDelay(1s);
source->setError(FRTE_RPC_CONNECTION);
for (int i = 0; i < 9; i++) {