Skip to content

Commit 5fad5a3

Browse files
committed
test: remove unnecessary test quirk re: CR comments
1 parent bdfaeb6 commit 5fad5a3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/connection.test.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1805,12 +1805,7 @@ describe('connections:', function() {
18051805
const m = new mongoose.Mongoose();
18061806
m.set('bufferTimeoutMS', 100);
18071807

1808-
// Delayed `assert.rejects()` pattern, because using the usual `await assert.rejects()` pattern _after_ the `setTimeout()`
1809-
// call below would lead to an unhandled promise rejection.
1810-
const promise = assert.rejects(m.connection.listCollections(), /Connection operation buffering timed out after 100ms/);
1811-
1812-
await new Promise(resolve => setTimeout(resolve, 200));
1813-
await promise;
1808+
await assert.rejects(m.connection.listCollections(), /Connection operation buffering timed out after 100ms/);
18141809
});
18151810

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

0 commit comments

Comments
 (0)