From 72adebaf7d608acacd88b50fdcdd0fea8906035e Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 27 Nov 2014 21:19:20 +0000 Subject: [PATCH] speed up test git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1642234 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/index/TestDemoParallelLeafReader.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDemoParallelLeafReader.java b/lucene/core/src/test/org/apache/lucene/index/TestDemoParallelLeafReader.java index 859b46277b0..b8fd87d98ca 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestDemoParallelLeafReader.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestDemoParallelLeafReader.java @@ -938,7 +938,7 @@ public class TestDemoParallelLeafReader extends LuceneTestCase { ReindexingReader reindexer = null; // TODO: separate refresh thread, search threads, indexing threads - int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 2000); + int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 1000); int maxID = 0; Path root = createTempDir(); int refreshEveryNumDocs = 100; @@ -1023,7 +1023,7 @@ public class TestDemoParallelLeafReader extends LuceneTestCase { ReindexingReader reindexer = null; // TODO: separate refresh thread, search threads, indexing threads - int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 2000); + int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 1000); int maxID = 0; Path root = createTempDir(); int refreshEveryNumDocs = 100; @@ -1199,9 +1199,10 @@ public class TestDemoParallelLeafReader extends LuceneTestCase { ReindexingReader reindexer = null; // TODO: separate refresh thread, search threads, indexing threads - int numDocs = atLeast(3000); + int numDocs = atLeast(TEST_NIGHTLY ? 20000 : 1000); int maxID = 0; int refreshEveryNumDocs = 100; + int commitCloseNumDocs = 1000; for(int i=0;i