Skip to content

Commit

Permalink
reduce server selection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 17, 2024
1 parent 6ad9dbf commit 09563d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/examples.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ describe('MongoDBStore', function() {

beforeEach(async function() {
const client = await mongodb.MongoClient.connect(
'mongodb://localhost:27017/connect_mongodb_session_test'
'mongodb://localhost:27017/connect_mongodb_session_test',
{ serverSelectionTimeoutMS: 5000 }
);
underlyingDb = client.db('connect_mongodb_session_test');
await client.db('connect_mongodb_session_test').collection('mySessions').deleteMany({});
Expand Down

0 comments on commit 09563d8

Please sign in to comment.