Skip to content

Commit

Permalink
test(NODE-6317): remove flaky unnecessary assertion (#4212)
Browse files Browse the repository at this point in the history
Co-authored-by: Aditi Khare <106987683+aditi-khare-mongoDB@users.noreply.github.com>
  • Loading branch information
baileympearson and aditi-khare-mongoDB authored Sep 3, 2024
1 parent 6073828 commit fb13ebf
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,8 @@ describe('Monitoring rtt tests', function () {
for (const [server, durations] of Object.entries(heartbeatDurations)) {
const relevantDurations = durations.slice(IGNORE_SIZE);
expect(relevantDurations).to.have.length.gt(0);
const averageDuration =
relevantDurations.reduce((acc, x) => acc + x) / relevantDurations.length;
const rtt = client.topology.description.servers.get(server).roundTripTime;
expect(rtt).to.not.equal(0);
expect(rtt).to.be.approximately(averageDuration, 3);
}
}
});
Expand Down

0 comments on commit fb13ebf

Please sign in to comment.