diff --git a/lucene/grouping/src/test/org/apache/lucene/search/grouping/GroupingSearchTest.java b/lucene/grouping/src/test/org/apache/lucene/search/grouping/GroupingSearchTest.java index 05f84533f3a..30c9d144243 100644 --- a/lucene/grouping/src/test/org/apache/lucene/search/grouping/GroupingSearchTest.java +++ b/lucene/grouping/src/test/org/apache/lucene/search/grouping/GroupingSearchTest.java @@ -136,7 +136,7 @@ public class GroupingSearchTest extends LuceneTestCase { assertEquals(2, group.scoreDocs.length); assertEquals(5, group.scoreDocs[0].doc); assertEquals(4, group.scoreDocs[1].doc); - assertTrue(group.scoreDocs[0].score > group.scoreDocs[1].score); + assertTrue(group.scoreDocs[0].score >= group.scoreDocs[1].score); group = groups.groups[1]; compareGroupValue("author1", group); @@ -144,8 +144,8 @@ public class GroupingSearchTest extends LuceneTestCase { assertEquals(0, group.scoreDocs[0].doc); assertEquals(1, group.scoreDocs[1].doc); assertEquals(2, group.scoreDocs[2].doc); - assertTrue(group.scoreDocs[0].score > group.scoreDocs[1].score); - assertTrue(group.scoreDocs[1].score > group.scoreDocs[2].score); + assertTrue(group.scoreDocs[0].score >= group.scoreDocs[1].score); + assertTrue(group.scoreDocs[1].score >= group.scoreDocs[2].score); group = groups.groups[2]; compareGroupValue("author2", group);