From: "Dr. Tobias Quathamer" Date: Sat, 14 Mar 2026 21:24:45 +0100 Subject: Remove two failing tests The tests relied on the old (and wrong) calculation of percentiles from montanaflynn/stats. This has been fixed in the latest version, so now the comparison fails. See https://github.com/montanaflynn/stats/pull/93 --- x/mongo/driver/topology/rtt_monitor_test.go | 36 ----------------------------- 1 file changed, 36 deletions(-) diff --git a/x/mongo/driver/topology/rtt_monitor_test.go b/x/mongo/driver/topology/rtt_monitor_test.go index b2f73f8..aa5009d 100644 --- a/x/mongo/driver/topology/rtt_monitor_test.go +++ b/x/mongo/driver/topology/rtt_monitor_test.go @@ -426,42 +426,6 @@ func TestPercentile(t *testing.T) { percentile: 33.34, want: 1, }, - { - desc: "90th percentile when there are enough samples", - samples: []time.Duration{ - 100 * time.Millisecond, - 200 * time.Millisecond, - 300 * time.Millisecond, - 400 * time.Millisecond, - 500 * time.Millisecond, - 600 * time.Millisecond, - 700 * time.Millisecond, - 800 * time.Millisecond, - 900 * time.Millisecond, - 1 * time.Second, - 0, 0, 0}, - minSamples: 10, - percentile: 90.0, - want: 900 * time.Millisecond, - }, - { - desc: "10th percentile when there are enough samples", - samples: []time.Duration{ - 100 * time.Millisecond, - 200 * time.Millisecond, - 300 * time.Millisecond, - 400 * time.Millisecond, - 500 * time.Millisecond, - 600 * time.Millisecond, - 700 * time.Millisecond, - 800 * time.Millisecond, - 900 * time.Millisecond, - 1 * time.Second, - 0, 0, 0}, - minSamples: 10, - percentile: 10.0, - want: 100 * time.Millisecond, - }, } for _, tc := range cases {