Skip to content

Commit

Permalink
test: remove unnecessary test quirk re: CR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 4, 2025
1 parent bdfaeb6 commit 5fad5a3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/connection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1805,12 +1805,7 @@ describe('connections:', function() {
const m = new mongoose.Mongoose();
m.set('bufferTimeoutMS', 100);

// Delayed `assert.rejects()` pattern, because using the usual `await assert.rejects()` pattern _after_ the `setTimeout()`
// call below would lead to an unhandled promise rejection.
const promise = assert.rejects(m.connection.listCollections(), /Connection operation buffering timed out after 100ms/);

await new Promise(resolve => setTimeout(resolve, 200));
await promise;
await assert.rejects(m.connection.listCollections(), /Connection operation buffering timed out after 100ms/);
});

it('supports db-level aggregate on connection (gh-15118)', async function() {
Expand Down

0 comments on commit 5fad5a3

Please sign in to comment.