lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1700459 - /lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java
Date Tue, 01 Sep 2015 09:51:05 GMT
Author: mikemccand
Date: Tue Sep  1 09:51:05 2015
New Revision: 1700459

URL: http://svn.apache.org/r1700459
Log:
LUCENE-6699: include the shape in the failure message

Modified:
    lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java

Modified: lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java?rev=1700459&r1=1700458&r2=1700459&view=diff
==============================================================================
--- lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java
(original)
+++ lucene/dev/branches/lucene6699/lucene/spatial3d/src/test/org/apache/lucene/bkdtree3d/TestGeo3DPointField.java
Tue Sep  1 09:51:05 2015
@@ -702,8 +702,10 @@ public class TestGeo3DPointField extends
       }
 
       if (fail) {
-        System.out.print(sw.toString());
-        fail();
+        if (VERBOSE) {
+          System.out.print(sw.toString());
+        }
+        fail("invalid hits for shape=" + shape);
       }
     }
   }



Mime
View raw message