Skip to content

Commit

Permalink
Adjust error on MedianAbsoluteDeviationAggregatorTests for concurrency (
Browse files Browse the repository at this point in the history
  • Loading branch information
iverase authored Oct 13, 2023
1 parent f36b9ca commit 92ad9f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void testSomeMatchesSortedNumericDocValues() throws IOException {
sample.add(point);
return singleton(new SortedNumericDocValuesField(FIELD_NAME, point));
}), agg -> {
assertThat(agg.getMedianAbsoluteDeviation(), closeToRelative(calculateMAD(sample)));
assertThat(agg.getMedianAbsoluteDeviation(), closeToRelative(calculateMAD(sample), 0.2));
assertTrue(AggregationInspectionHelper.hasValue(agg));
});
}
Expand All @@ -112,7 +112,7 @@ public void testSomeMatchesNumericDocValues() throws IOException {
sample.add(point);
return singleton(new NumericDocValuesField(FIELD_NAME, point));
}), agg -> {
assertThat(agg.getMedianAbsoluteDeviation(), closeToRelative(calculateMAD(sample)));
assertThat(agg.getMedianAbsoluteDeviation(), closeToRelative(calculateMAD(sample), 0.2));
assertTrue(AggregationInspectionHelper.hasValue(agg));
});
}
Expand Down

0 comments on commit 92ad9f7

Please sign in to comment.