Skip to content

Commit

Permalink
fix: 🔥 fix tests expecting 6min timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Oct 14, 2020
1 parent a127cfc commit 4c2af4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/functional/mongo_client.test.js
Expand Up @@ -367,7 +367,7 @@ describe('MongoClient', function() {

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

client.close();
Expand Down
3 changes: 2 additions & 1 deletion test/functional/replset_connection.test.js
@@ -1,6 +1,7 @@
'use strict';
var f = require('util').format;
var test = require('./shared').assert;
const expect = require('chai').expect;
var setupDatabase = require('./shared').setupDatabase;

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

test.equal(500, client.topology.connections()[0].connectionTimeout);
test.equal(360000, client.topology.connections()[0].socketTimeout);
expect(client.topology.connections()[0].socketTimeout).to.equal(0);

db.collection('replicaset_mongo_client_collection').update(
{ a: 1 },
Expand Down

0 comments on commit 4c2af4e

Please sign in to comment.