summaryrefslogtreecommitdiffstats
path: root/config/src/tests/frt
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-12-08 20:11:13 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-12-16 23:48:46 +0000
commitc72bdc628b4493bfb2974ab3fe479d2af0d376f1 (patch)
treece2f82f3f6f7cfd6ece7ac9ae06edef92986432f /config/src/tests/frt
parent6b4486254e67b61e7dbe7dab30ae50d3b0bf01bb (diff)
WipeHistory has not been used for a very long time.
Diffstat (limited to 'config/src/tests/frt')
-rw-r--r--config/src/tests/frt/frt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/src/tests/frt/frt.cpp b/config/src/tests/frt/frt.cpp
index 28dea82bfe7..1925b87d600 100644
--- a/config/src/tests/frt/frt.cpp
+++ b/config/src/tests/frt/frt.cpp
@@ -43,10 +43,10 @@ namespace {
bool poll() override { return notified; }
void interrupt() override { }
- bool waitUntilResponse(int timeoutInMillis)
+ bool waitUntilResponse(vespalib::duration timeout)
{
- fastos::StopWatch timer;
- while (timer.elapsed().ms() < timeoutInMillis) {
+ vespalib::Timer timer;
+ while (timer.elapsed() < timeout) {
if (notified)
break;
std::this_thread::sleep_for(100ms);
@@ -255,8 +255,8 @@ TEST_FF("require that request is config task is scheduled", SourceFixture(), FRT
f2.src.getConfig();
ASSERT_TRUE(f2.result.notified);
f2.result.notified = false;
- fastos::StopWatch timer;
- while (timer.elapsed().ms() < 10000) {
+ vespalib::Timer timer;
+ while (timer.elapsed() < 10s) {
f1.conn.scheduler.CheckTasks();
if (f2.result.notified)
break;