mirror of https://github.com/apache/lucene.git
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:
parent
de223f43f8
commit
e5f22c7bef
|
@ -20,8 +20,6 @@ package org.apache.lucene.index;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
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
|
* 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
|
* not they are indexed. Each segment has a separate Field Info file. Objects
|
||||||
|
|
|
@ -187,8 +187,6 @@ public class TestDocValuesWithThreads extends LuceneTestCase {
|
||||||
|
|
||||||
final long END_TIME = System.currentTimeMillis() + (TEST_NIGHTLY ? 30 : 1);
|
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);
|
final int NUM_THREADS = _TestUtil.nextInt(random(), 1, 10);
|
||||||
Thread[] threads = new Thread[NUM_THREADS];
|
Thread[] threads = new Thread[NUM_THREADS];
|
||||||
for(int thread=0;thread<NUM_THREADS;thread++) {
|
for(int thread=0;thread<NUM_THREADS;thread++) {
|
||||||
|
@ -197,8 +195,10 @@ public class TestDocValuesWithThreads extends LuceneTestCase {
|
||||||
public void run() {
|
public void run() {
|
||||||
Random random = random();
|
Random random = random();
|
||||||
final SortedDocValues stringDVDirect;
|
final SortedDocValues stringDVDirect;
|
||||||
|
final NumericDocValues docIDToID;
|
||||||
try {
|
try {
|
||||||
stringDVDirect = sr.getSortedDocValues("stringdv");
|
stringDVDirect = sr.getSortedDocValues("stringdv");
|
||||||
|
docIDToID = sr.getNumericDocValues("id");
|
||||||
assertNotNull(stringDVDirect);
|
assertNotNull(stringDVDirect);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
throw new RuntimeException(ioe);
|
throw new RuntimeException(ioe);
|
||||||
|
|
Loading…
Reference in New Issue