summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-11-18 14:30:35 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-11-18 14:30:35 +0000
commita65c5f165553d4b954151e671b770706a749b727 (patch)
tree6429f124ff8b109289fdb911d74cc2128a4c8393 /searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
parent24be87327ebbff702d113084b0ef87fd194c0ef4 (diff)
Specify UTC explicit
Diffstat (limited to 'searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp')
-rw-r--r--searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
index 35e21d133c2..4e2450dccc9 100644
--- a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
+++ b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
@@ -757,21 +757,21 @@ TEST("requireThatSyncTokenIsUpdatedAfterFlush") {
TEST("requireThatFlushTimeIsAvailableAfterFlush") {
TmpDirectory testDir("flushtime");
- fastos::TimeStamp before(fastos::ClockSystem::now());
+ fastos::UTCTimeStamp before(fastos::ClockSystem::now());
DummyFileHeaderContext fileHeaderContext;
LogDataStore::Config config;
vespalib::ThreadStackExecutor executor(1, 128*1024);
MyTlSyncer tlSyncer;
LogDataStore store(executor, testDir.getDir(), config, GrowStrategy(),
TuneFileSummary(), fileHeaderContext, tlSyncer, nullptr);
- EXPECT_EQUAL(0, store.getLastFlushTime().time());
+ EXPECT_EQUAL(0, store.getLastFlushTime().timeSinceEpoch().time());
uint64_t flushToken = store.initFlush(5);
EXPECT_EQUAL(5u, flushToken);
store.flush(flushToken);
- fastos::TimeStamp after(fastos::ClockSystem::now());
+ fastos::UTCTimeStamp after(fastos::ClockSystem::now());
// the file name of the dat file is 'magic', using the clock instead of stating the file
- EXPECT_LESS_EQUAL(before.time(), store.getLastFlushTime().time());
- EXPECT_GREATER_EQUAL(after.time(), store.getLastFlushTime().time());
+ EXPECT_LESS_EQUAL(before, store.getLastFlushTime());
+ EXPECT_GREATER_EQUAL(after, store.getLastFlushTime());
}