summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_clock_test.cpp
diff options
context:
space:
mode:
authorShreyas Kalyan <shreyas.kalyan@10gen.com>2019-02-25 11:05:24 -0500
committerShreyas Kalyan <shreyas.kalyan@10gen.com>2019-02-25 11:06:28 -0500
commit3f039abef078edbe90b0f70a3a59d1642bb8fc7c (patch)
treeb8da0001426f5fc591d304ae3ffe6cadebb603cb /src/mongo/db/logical_clock_test.cpp
parent8aec8af7f8fc964a3552cc7026a9de03b677f018 (diff)
downloadmongo-3f039abef078edbe90b0f70a3a59d1642bb8fc7c.tar.gz
SERVER-39557 Fix test compile
Diffstat (limited to 'src/mongo/db/logical_clock_test.cpp')
-rw-r--r--src/mongo/db/logical_clock_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/logical_clock_test.cpp b/src/mongo/db/logical_clock_test.cpp
index ac3ddadd45d..10f3afa7be5 100644
--- a/src/mongo/db/logical_clock_test.cpp
+++ b/src/mongo/db/logical_clock_test.cpp
@@ -121,8 +121,8 @@ TEST_F(LogicalClockTest, RateLimiterRejectsLogicalTimesTooFarAhead) {
// Verify cluster time can be initialized to a very old time.
TEST_F(LogicalClockTest, InitFromTrustedSourceCanAcceptVeryOldLogicalTime) {
- setMockClockSourceTime(
- Date_t::fromMillisSinceEpoch(kMaxAcceptableLogicalClockDriftSecsDefault * 10 * 1000));
+ setMockClockSourceTime(Date_t::fromMillisSinceEpoch(
+ durationCount<Seconds>(Seconds(kMaxAcceptableLogicalClockDriftSecsDefault)) * 10 * 1000));
Timestamp veryOldTimestamp(
durationCount<Seconds>(getMockClockSourceTime().toDurationSinceEpoch()) -