Skip to content

Apache Lucene open-source search software

LUCENE-5953: Fix null lock factory

Uwe Schindlere8144f986b42
diff --git a/lucene/core/src/test/org/apache/lucene/store/TestLockFactory.java b/lucene/core/src/test/org/apache/lucene/store/TestLockFactory.java
index 2b2a224d8c1..8c5c6952136 100644
--- a/lucene/core/src/test/org/apache/lucene/store/TestLockFactory.java
+++ b/lucene/core/src/test/org/apache/lucene/store/TestLockFactory.java
@@ -123,8 +123,8 @@ public class TestLockFactory extends LuceneTestCase {
// IndexWriters over & over in 2 threads and making sure
// no unexpected exceptions are raised:
@Nightly
- public void testStressLocks() throws Exception {
- _testStressLocks(null, createTempDir("index.TestLockFactory6"));
+ public void testStressLocksSimpleFSLockFactory() throws Exception {
+ _testStressLocks(SimpleFSLockFactory.INSTANCE, createTempDir("index.TestLockFactory6"));
}
// Verify: do stress test, by opening IndexReaders and