Debian Codegraph @

debian/patches/0003-Remove-two-failing-tests.patch

raw
1 From: "Dr. Tobias Quathamer" <[email protected]>
2 Date: Sat, 14 Mar 2026 21:24:45 +0100
3 Subject: Remove two failing tests
4
5 The tests relied on the old (and wrong) calculation of
6 percentiles from montanaflynn/stats. This has been
7 fixed in the latest version, so now the comparison
8 fails.
9
10 See https://github.com/montanaflynn/stats/pull/93
11 ---
12 x/mongo/driver/topology/rtt_monitor_test.go | 36 -----------------------------
13 1 file changed, 36 deletions(-)
14
15 diff --git a/x/mongo/driver/topology/rtt_monitor_test.go b/x/mongo/driver/topology/rtt_monitor_test.go
16 index b2f73f8..aa5009d 100644
17 --- a/x/mongo/driver/topology/rtt_monitor_test.go
18 +++ b/x/mongo/driver/topology/rtt_monitor_test.go
19 @@ -426,42 +426,6 @@ func TestPercentile(t *testing.T) {
20 percentile: 33.34,
21 want: 1,
22 },
23 - {
24 - desc: "90th percentile when there are enough samples",
25 - samples: []time.Duration{
26 - 100 * time.Millisecond,
27 - 200 * time.Millisecond,
28 - 300 * time.Millisecond,
29 - 400 * time.Millisecond,
30 - 500 * time.Millisecond,
31 - 600 * time.Millisecond,
32 - 700 * time.Millisecond,
33 - 800 * time.Millisecond,
34 - 900 * time.Millisecond,
35 - 1 * time.Second,
36 - 0, 0, 0},
37 - minSamples: 10,
38 - percentile: 90.0,
39 - want: 900 * time.Millisecond,
40 - },
41 - {
42 - desc: "10th percentile when there are enough samples",
43 - samples: []time.Duration{
44 - 100 * time.Millisecond,
45 - 200 * time.Millisecond,
46 - 300 * time.Millisecond,
47 - 400 * time.Millisecond,
48 - 500 * time.Millisecond,
49 - 600 * time.Millisecond,
50 - 700 * time.Millisecond,
51 - 800 * time.Millisecond,
52 - 900 * time.Millisecond,
53 - 1 * time.Second,
54 - 0, 0, 0},
55 - minSamples: 10,
56 - percentile: 10.0,
57 - want: 100 * time.Millisecond,
58 - },
59 }
60
61 for _, tc := range cases {