summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/aggregator
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-12-16 21:34:54 -0600
committerGitHub <noreply@github.com>2019-12-16 21:34:54 -0600
commit8a02ad01e25ed2483bd0f1c8abdec8eabf44634a (patch)
tree253ee93b860f20a9c1deeb4cf0f6a31945bf6bf8 /searchlib/src/tests/aggregator
parent2f8e6f0cb74ef77a645e7543975aca736f7649a9 (diff)
Revert "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 513e94321e1..c078282c442 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);
- vespalib::Timer timer;
+ fastos::StopWatch timer;
n.execute();
- EXPECT_TRUE(timer.elapsed() > 1s);
+ EXPECT_TRUE(timer.elapsed().ms() > 1000.0);
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);
- vespalib::Timer timer;
+ fastos::StopWatch timer;
n.execute();
- EXPECT_TRUE(timer.elapsed() > 1s);
+ EXPECT_TRUE(timer.elapsed().ms() > 1000.0);
EXPECT_EQUAL(static_cast<const Int64ResultNode &>(n.getResult()).get(), 7);
}
}