0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-22 04:59:34 +01:00

SERVER-41753 Change indexc.js to use a single date

This commit is contained in:
Ted Tuckman 2019-06-14 14:40:46 -04:00
parent 58df54d9c7
commit 211db32dc1

View File

@ -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;