prevent rolling updates from relying on num of CPUs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/realtime_search@1092614 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2011-04-15 07:42:34 +00:00
parent 3128a64121
commit ccd4d4a1e1
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class TestRollingUpdates extends LuceneTestCase {
TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMaxBufferedDocs(2));
final int SIZE = 200 * RANDOM_MULTIPLIER;
final int numUpdates = (int) (SIZE * (2 + random.nextDouble()));
int numThreads = 3 + random.nextInt(Runtime.getRuntime().availableProcessors());
int numThreads = 3 + random.nextInt(12);
IndexingThread[] threads = new IndexingThread[numThreads];
for (int i = 0; i < numThreads; i++) {
threads[i] = new IndexingThread(docs, w, numUpdates);