Skip to content

Commit 07de031

Browse files
committed
[Tests] Fix occasional test failure due to two random values being the same
1 parent fa330a1 commit 07de031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/aggs-matrix-stats/src/test/java/org/elasticsearch/search/aggregations/matrix/stats/InternalMatrixStatsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected void assertFromXContent(InternalMatrixStats expected, ParsedAggregatio
100100
}
101101

102102
final String unknownField = randomAlphaOfLength(3);
103-
final String other = randomAlphaOfLength(3);
103+
final String other = randomValueOtherThan(unknownField, () -> randomAlphaOfLength(3));
104104

105105
for (MatrixStats matrix : Arrays.asList(actual)) {
106106

0 commit comments

Comments
 (0)