Skip to content

Commit 61df30c

Browse files
committed
chore: skip #14984 test on old MongoDB versions that dont have timeseries
1 parent 6a5ee71 commit 61df30c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/model.test.js

+6
Original file line numberDiff line numberDiff line change
@@ -8150,6 +8150,12 @@ describe('Model', function() {
81508150

81518151
describe('diffIndexes()', function() {
81528152
it('avoids trying to drop timeseries collections (gh-14984)', async function() {
8153+
const version = await start.mongodVersion();
8154+
if (version[0] < 5) {
8155+
this.skip();
8156+
return;
8157+
}
8158+
81538159
const schema = new mongoose.Schema(
81548160
{
81558161
time: {

0 commit comments

Comments
 (0)