Revert "SERVER-98874 Fix flaky underflow test (#30720)"

GitOrigin-RevId: ba92303e18e7ed4701572aa15acd161c97796f2f
This commit is contained in:
Dylan Richardson
2025-12-17 20:21:10 +00:00
committed by MongoDB Bot
parent 47a5fc9322
commit 1c23b749ff

View File

@@ -70,11 +70,10 @@ const timeseriesParams = {
granularity: 'seconds',
};
db.dropDatabase();
assert.commandWorked(db.createCollection('test', {timeseries: timeseriesParams}));
assert.commandWorked(db.test.insert(documentList));
db.createCollection('test', {timeseries: timeseriesParams});
db.test.insert(documentList);
// Simply test that the query can be fully executed and does not trigger a tripwire assertion.
const res = db.test.aggregate(pipeline).toArray();
assert.gte(res.length, 30, tojson(res));
let res = db.test.aggregate(pipeline).toArray();
assert(res.length >= 30);
})();