diff --git a/test/model.test.js b/test/model.test.js index 69e42ded9b..8584b08a85 100644 --- a/test/model.test.js +++ b/test/model.test.js @@ -8150,6 +8150,12 @@ describe('Model', function() { describe('diffIndexes()', function() { it('avoids trying to drop timeseries collections (gh-14984)', async function() { + const version = await start.mongodVersion(); + if (version[0] < 5) { + this.skip(); + return; + } + const schema = new mongoose.Schema( { time: {