Skip to content

Commit

Permalink
chore: skip #14984 test on old MongoDB versions that dont have timese…
Browse files Browse the repository at this point in the history
…ries
  • Loading branch information
vkarpov15 committed Nov 12, 2024
1 parent 6a5ee71 commit 61df30c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 61df30c

Please sign in to comment.