From 03b1d8abecbf7db72845f883bf20c3c9bdf820a4 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Tue, 7 Jan 2020 23:51:26 +0100 Subject: system_time and steady_time might have different duration types. --- config/src/tests/trace/trace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/src/tests') diff --git a/config/src/tests/trace/trace.cpp b/config/src/tests/trace/trace.cpp index fdb40d40893..89e1cb3cbaf 100644 --- a/config/src/tests/trace/trace.cpp +++ b/config/src/tests/trace/trace.cpp @@ -10,7 +10,7 @@ using namespace vespalib::slime; struct FixedClock : public Clock { - FixedClock() : _currentTime(duration::zero()) { } + FixedClock() : _currentTime(vespalib::system_time::duration::zero()) { } vespalib::system_time _currentTime; vespalib::system_time currentTime() const override { return _currentTime; } }; @@ -57,7 +57,7 @@ TEST("that trace can be copied") { EXPECT_EQUAL(trace.toString(), trace2.toString()); } -constexpr vespalib::system_time epoch(duration::zero()); +constexpr vespalib::system_time epoch(vespalib::system_time::duration::zero()); TEST("ensure that system clock is used by default") { Trace trace(2); -- cgit v1.2.3