From 3f039abef078edbe90b0f70a3a59d1642bb8fc7c Mon Sep 17 00:00:00 2001 From: Shreyas Kalyan Date: Mon, 25 Feb 2019 11:05:24 -0500 Subject: SERVER-39557 Fix test compile --- src/mongo/db/logical_clock_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/logical_clock_test.cpp') 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(kMaxAcceptableLogicalClockDriftSecsDefault)) * 10 * 1000)); Timestamp veryOldTimestamp( durationCount(getMockClockSourceTime().toDurationSinceEpoch()) - -- cgit v1.2.1