From e5f22c7befc7534fa5688c9d5d693360a4a90207 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 1 Feb 2013 21:22:49 +0000 Subject: [PATCH] fix test bug git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1441636 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/core/src/java/org/apache/lucene/index/FieldInfo.java | 2 -- .../org/apache/lucene/index/TestDocValuesWithThreads.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java b/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java index 58535160186..6f40b2ff056 100644 --- a/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java +++ b/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java @@ -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 diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDocValuesWithThreads.java b/lucene/core/src/test/org/apache/lucene/index/TestDocValuesWithThreads.java index 1c6d5c02054..ff34c225836 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestDocValuesWithThreads.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestDocValuesWithThreads.java @@ -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