diff options
author | Jordi Olivares Provencio <jordi.olivares-provencio@mongodb.com> | 2023-05-16 16:00:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-16 17:45:42 +0000 |
commit | 8e48a8ff0a091a284f615b6d0c3c8edad292c863 (patch) | |
tree | 3c4e624c4d25ffca1946ecc0ec3f1cc8d239dbc7 | |
parent | 0249b20d05c58ceb47375413e9eb47e028859489 (diff) | |
download | mongo-8e48a8ff0a091a284f615b6d0c3c8edad292c863.tar.gz |
SERVER-77120 Raise timestamps used in preimage consistency test
-rw-r--r-- | jstests/noPassthrough/preimages_can_be_inconsistent.js | 7 |
1 files 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, }; } |