diff --git a/lucene/core/src/test/org/apache/lucene/geo/TestPoint.java b/lucene/core/src/test/org/apache/lucene/geo/TestPoint.java index 31f2da4929f1..0301bf18718d 100644 --- a/lucene/core/src/test/org/apache/lucene/geo/TestPoint.java +++ b/lucene/core/src/test/org/apache/lucene/geo/TestPoint.java @@ -56,7 +56,7 @@ public void testEqualsAndHashCode() { if (Double.compare(point.getLat(), otherPoint.getLat()) != 0 || Double.compare(point.getLon(), otherPoint.getLon()) != 0) { assertNotEquals(point, otherPoint); - assertNotEquals(point.hashCode(), otherPoint.hashCode()); + // it is possible to have hashcode collisions } else { assertEquals(point, otherPoint); assertEquals(point.hashCode(), otherPoint.hashCode());