Skip to content

Commit fb13ebf

Browse files
test(NODE-6317): remove flaky unnecessary assertion (#4212)
Co-authored-by: Aditi Khare <[email protected]>
1 parent 6073828 commit fb13ebf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/integration/server-discovery-and-monitoring/server_discover_and_monitoring.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,8 @@ describe('Monitoring rtt tests', function () {
109109
for (const [server, durations] of Object.entries(heartbeatDurations)) {
110110
const relevantDurations = durations.slice(IGNORE_SIZE);
111111
expect(relevantDurations).to.have.length.gt(0);
112-
const averageDuration =
113-
relevantDurations.reduce((acc, x) => acc + x) / relevantDurations.length;
114112
const rtt = client.topology.description.servers.get(server).roundTripTime;
115113
expect(rtt).to.not.equal(0);
116-
expect(rtt).to.be.approximately(averageDuration, 3);
117114
}
118115
}
119116
});

0 commit comments

Comments
 (0)