aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/engine
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-03-11 07:58:04 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-03-11 07:58:04 +0000
commit9f8d43aa82b661cd6dd8e877156966bac739519e (patch)
tree2ad1cc12e858a26d5e4abae8a368ca05619686fa /searchlib/src/tests/engine
parent9821a7fd7de84ee0dbae255ffff480c43135fcd0 (diff)
Absolute time as string in UTC for readability.
Diffstat (limited to 'searchlib/src/tests/engine')
-rw-r--r--searchlib/src/tests/engine/searchapi/searchapi_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/tests/engine/searchapi/searchapi_test.cpp b/searchlib/src/tests/engine/searchapi/searchapi_test.cpp
index 848aa91553d..46ccb544518 100644
--- a/searchlib/src/tests/engine/searchapi/searchapi_test.cpp
+++ b/searchlib/src/tests/engine/searchapi/searchapi_test.cpp
@@ -235,12 +235,12 @@ void verify(vespalib::stringref expected, const vespalib::Slime & slime) {
}
TEST("verify trace") {
- RelativeTime clock(std::make_unique<CountingClock>(7, 1700000));
+ RelativeTime clock(std::make_unique<CountingClock>(fastos::TimeStamp::fromSec(1500000000), 1700000L));
Trace t(clock);
verify("{"
" traces: ["
" ],"
- " creation_time: 7"
+ " time_utc: '2017-07-14 02:40:00.000 UTC'"
"}",
t.getSlime());
t.createCursor("tag_a");
@@ -251,7 +251,7 @@ TEST("verify trace") {
" time_ms: 1.7"
" }"
" ],"
- " creation_time: 7"
+ " time_utc: '2017-07-14 02:40:00.000 UTC'"
"}",
t.getSlime());
Trace::Cursor & tagB = t.createCursor("tag_b");
@@ -268,7 +268,7 @@ TEST("verify trace") {
" long: 19"
" }"
" ],"
- " creation_time: 7"
+ " time_utc: '2017-07-14 02:40:00.000 UTC'"
"}",
t.getSlime());
}