Skip to content
Prev Previous commit
Next Next commit
collect more heartbeats
  • Loading branch information
W-A-James committed May 14, 2024
commit 21648996795239ad5986a585d9cb2e3610e386a3
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('SDAM Unified Tests (Node Driver)', function () {
describe('Monitoring rtt tests', function () {
let client: MongoClient;
let windows: Record<string, number[][]>;
const THRESH = 100; // Wait for 100 total heartbeats. This is high enough to work for standalone, sharded and our typical 3-node replica set topology tests
const THRESH = 200; // Wait for 100 total heartbeats. This is high enough to work for standalone, sharded and our typical 3-node replica set topology tests
const SAMPLING_WINDOW_SIZE = 10;
let count: number;
const ee = new EventEmitter();
Expand Down Expand Up @@ -58,7 +58,7 @@ describe('Monitoring rtt tests', function () {
context(`when serverMonitoringMode is set to '${serverMonitoringMode}'`, function () {
beforeEach(async function () {
client = this.configuration.newClient({
heartbeatFrequencyMS: 500,
heartbeatFrequencyMS: 100,
connectTimeoutMS: 1000,
serverMonitoringMode
});
Expand Down