From 8e48a8ff0a091a284f615b6d0c3c8edad292c863 Mon Sep 17 00:00:00 2001 From: Jordi Olivares Provencio Date: Tue, 16 May 2023 16:00:55 +0000 Subject: SERVER-77120 Raise timestamps used in preimage consistency test --- jstests/noPassthrough/preimages_can_be_inconsistent.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jstests/noPassthrough/preimages_can_be_inconsistent.js b/jstests/noPassthrough/preimages_can_be_inconsistent.js index bf87f16e5cd..f658c6940d9 100644 --- a/jstests/noPassthrough/preimages_can_be_inconsistent.js +++ b/jstests/noPassthrough/preimages_can_be_inconsistent.js @@ -17,13 +17,16 @@ "use strict"; function getPreImage(collectionIndex, ts) { + const farOffDate = ISODate("2100-01-01"); + const epochSeconds = farOffDate.valueOf() / 1000; + // Return a document inserted with a date really far off into the future. return { _id: { nsUUID: UUID(`3b241101-e2bb-4255-8caf-4136c566a12${collectionIndex}`), - ts: new Timestamp(ts, 0), + ts: new Timestamp(epochSeconds, ts), applyOpsIndex: 0, }, - operationTime: ISODate("9000-01-01"), // Put a date really far off into the future. + operationTime: farOffDate, }; } -- cgit v1.2.1