Skip to content

Commit cf598e1

Browse files
committed
fix: correct inverted defaults for unified topology
The defaults for `serverSelectionTimeoutMS` and `heartbeatFrequencyMS` were unintentionally inverted.
1 parent 5188bda commit cf598e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/core/sdam/topology.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ let globalTopologyCounter = 0;
3232
// Constants
3333
const TOPOLOGY_DEFAULTS = {
3434
localThresholdMS: 15,
35-
serverSelectionTimeoutMS: 10000,
36-
heartbeatFrequencyMS: 30000,
35+
serverSelectionTimeoutMS: 30000,
36+
heartbeatFrequencyMS: 10000,
3737
minHeartbeatFrequencyMS: 500
3838
};
3939

test/functional/connections_stepdown_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('Connections survive primary step down', function() {
3030
beforeEach(function() {
3131
client = this.configuration.newClient(
3232
{ w: 1 },
33-
{ poolSize: 1, retryWrites: false, useUnifiedTopology: true, serverSelectionTimeoutMS: 30000 }
33+
{ poolSize: 1, retryWrites: false, useUnifiedTopology: true }
3434
);
3535

3636
return client

0 commit comments

Comments
 (0)