summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2019-06-14 14:40:46 -0400
committerTed Tuckman <ted.tuckman@mongodb.com>2019-06-21 09:23:55 -0400
commite137f2ba789adc7afe9b8fa806c835022a5e1f76 (patch)
treefff35b45d92c046fcb92865a422423d33eec7489
parent726cfdeab21ea104666018b1e52643ec2bb5d366 (diff)
downloadmongo-e137f2ba789adc7afe9b8fa806c835022a5e1f76.tar.gz
SERVER-41753 Change indexc.js to use a single date
(cherry picked from commit 211db32dc1838d591778f5c3c24e00435d3b59a0)
-rw-r--r--jstests/core/indexc.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/core/indexc.js b/jstests/core/indexc.js
index 8a4591bbd9a..3bc4c9eaca8 100644
--- a/jstests/core/indexc.js
+++ b/jstests/core/indexc.js
@@ -2,8 +2,9 @@
t = db.indexc;
t.drop();
+const startMillis = new Date().getTime();
for (var i = 1; i < 100; i++) {
- var d = new Date((new Date()).getTime() + i);
+ var d = new Date(startMillis + i);
t.save({a: i, ts: d, cats: [i, i + 1, i + 2]});
if (i == 51)
mid = d;