Skip to content

Apache Lucene open-source search software

TestGeoPointQuery: don't use costly codecs for this costly testRandomBig test.

Adrien Grand565319ec76d8
diff --git a/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java b/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java
index b46939e2f68..5c6a6c0886f 100644
--- a/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java
+++ b/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java
@@ -257,6 +257,7 @@ public class TestGeoPointQuery extends LuceneTestCase {
Directory dir;
if (lats.length > 100000) {
dir = newFSDirectory(createTempDir("TestGeoPointQuery"));
+ iwc.setCodec(TestUtil.getDefaultCodec());
} else {
dir = newDirectory();
}