fix test bug

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1441636 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-02-01 21:22:49 +00:00
parent de223f43f8
commit e5f22c7bef
2 changed files with 2 additions and 4 deletions

View File

@ -20,8 +20,6 @@ package org.apache.lucene.index;
import java.util.HashMap;
import java.util.Map;
// nocommit fails if you repeat: TestDocValuesWithThreads.test2 -seed A765AB92D216E371
/**
* Access to the Field Info file that describes document fields and whether or
* not they are indexed. Each segment has a separate Field Info file. Objects

View File

@ -187,8 +187,6 @@ public class TestDocValuesWithThreads extends LuceneTestCase {
final long END_TIME = System.currentTimeMillis() + (TEST_NIGHTLY ? 30 : 1);
final NumericDocValues docIDToID = sr.getNumericDocValues("id");
final int NUM_THREADS = _TestUtil.nextInt(random(), 1, 10);
Thread[] threads = new Thread[NUM_THREADS];
for(int thread=0;thread<NUM_THREADS;thread++) {
@ -197,8 +195,10 @@ public class TestDocValuesWithThreads extends LuceneTestCase {
public void run() {
Random random = random();
final SortedDocValues stringDVDirect;
final NumericDocValues docIDToID;
try {
stringDVDirect = sr.getSortedDocValues("stringdv");
docIDToID = sr.getNumericDocValues("id");
assertNotNull(stringDVDirect);
} catch (IOException ioe) {
throw new RuntimeException(ioe);