From 268d4ace3695ad3738402d623400fa4775b113ef Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Thu, 15 Dec 2016 09:23:48 -0500 Subject: [PATCH] remove bad assertion --- .../src/java/org/apache/lucene/search/QueryUtils.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/search/QueryUtils.java b/lucene/test-framework/src/java/org/apache/lucene/search/QueryUtils.java index a3eaa80ed07..ae4c89023d4 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/search/QueryUtils.java +++ b/lucene/test-framework/src/java/org/apache/lucene/search/QueryUtils.java @@ -93,10 +93,6 @@ public class QueryUtils { public static void checkUnequal(Query q1, Query q2) { assertFalse(q1 + " equal to " + q2, q1.equals(q2)); assertFalse(q2 + " equal to " + q1, q2.equals(q1)); - - // possible this test can fail on a hash collision... if that - // happens, please change test to use a different example. - assertTrue(q1.hashCode() != q2.hashCode()); } /** deep check that explanations of a query 'score' correctly */