Skip to content

Commit 4c2af4e

Browse files
committed
fix: 🔥 fix tests expecting 6min timeout
1 parent a127cfc commit 4c2af4e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/functional/mongo_client.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ describe('MongoClient', function() {
367367

368368
for (var i = 0; i < connections.length; i++) {
369369
test.equal(10000, connections[i].connectionTimeout);
370-
test.equal(360000, connections[i].socketTimeout);
370+
expect(connections[i].socketTimeout).to.equal(0);
371371
}
372372

373373
client.close();

test/functional/replset_connection.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
var f = require('util').format;
33
var test = require('./shared').assert;
4+
const expect = require('chai').expect;
45
var setupDatabase = require('./shared').setupDatabase;
56

67
var restartAndDone = function(configuration, done) {
@@ -595,7 +596,7 @@ describe.skip('ReplSet (Connection)', function() {
595596
var db = client.db(configuration.db);
596597

597598
test.equal(500, client.topology.connections()[0].connectionTimeout);
598-
test.equal(360000, client.topology.connections()[0].socketTimeout);
599+
expect(client.topology.connections()[0].socketTimeout).to.equal(0);
599600

600601
db.collection('replicaset_mongo_client_collection').update(
601602
{ a: 1 },

0 commit comments

Comments
 (0)