Skip to content

Commit 9a0fe02

Browse files
committed
Fix testPercentilesClampedToMinMax test
1 parent e75933f commit 9a0fe02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libs/exponential-histogram/src/test/java/org/elasticsearch/exponentialhistogram/QuantileAccuracyTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public void testPercentilesClampedToMinMax() {
6767
ExponentialHistogram histogram = createAutoReleasedHistogram(
6868
b -> b.scale(0).setNegativeBucket(1, 1).setPositiveBucket(1, 1).max(0.00001).min(-0.00002)
6969
);
70-
double p01 = ExponentialHistogramQuantile.getQuantile(histogram, 0.01);
71-
double p99 = ExponentialHistogramQuantile.getQuantile(histogram, 0.99);
72-
assertThat(p01, equalTo(-0.00002));
73-
assertThat(p99, equalTo(0.00001));
70+
double p0 = ExponentialHistogramQuantile.getQuantile(histogram, 0.0);
71+
double p100 = ExponentialHistogramQuantile.getQuantile(histogram, 1.0);
72+
assertThat(p0, equalTo(-0.00002));
73+
assertThat(p100, equalTo(0.00001));
7474
}
7575

7676
public void testMinMaxClampedPercentileAccuracy() {

0 commit comments

Comments
 (0)