summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/aggregator
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-12-16 15:43:32 -0800
committerGitHub <noreply@github.com>2019-12-16 15:43:32 -0800
commit2f8e6f0cb74ef77a645e7543975aca736f7649a9 (patch)
tree3cd1f386e75cfdefaedb1ba19f8fbdc5533fc5b7 /searchlib/src/tests/aggregator
parent40e8a8b4ac2a021ede5a5babd42976ab313ce0b8 (diff)
parent0da20f33e911811b72bea5de39e90d17632bf8bd (diff)
Merge pull request #11535 from vespa-engine/balder/remove-steadytimestamp-2
Balder/remove steadytimestamp 2
Diffstat (limited to 'searchlib/src/tests/aggregator')
-rw-r--r--searchlib/src/tests/aggregator/perdocexpr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/tests/aggregator/perdocexpr.cpp b/searchlib/src/tests/aggregator/perdocexpr.cpp
index c078282c442..513e94321e1 100644
--- a/searchlib/src/tests/aggregator/perdocexpr.cpp
+++ b/searchlib/src/tests/aggregator/perdocexpr.cpp
@@ -694,9 +694,9 @@ TEST("testDebugFunction") {
DebugWaitFunctionNode n(std::move(add), 1.3, false);
n.prepare(false);
- fastos::StopWatch timer;
+ vespalib::Timer timer;
n.execute();
- EXPECT_TRUE(timer.elapsed().ms() > 1000.0);
+ EXPECT_TRUE(timer.elapsed() > 1s);
EXPECT_EQUAL(static_cast<const Int64ResultNode &>(n.getResult()).get(), 7);
}
{
@@ -706,9 +706,9 @@ TEST("testDebugFunction") {
DebugWaitFunctionNode n(std::move(add), 1.3, true);
n.prepare(false);
- fastos::StopWatch timer;
+ vespalib::Timer timer;
n.execute();
- EXPECT_TRUE(timer.elapsed().ms() > 1000.0);
+ EXPECT_TRUE(timer.elapsed() > 1s);
EXPECT_EQUAL(static_cast<const Int64ResultNode &>(n.getResult()).get(), 7);
}
}