Fix TestNRTThreads by explicitely copying the term before running the query.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1670026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-03-30 09:42:11 +00:00
parent ac0b4c552a
commit 01152b825f
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ public abstract class ThreadedIndexingAndSearchingTestCase extends LuceneTestCas
//if (VERBOSE) {
//System.out.println(Thread.currentThread().getName() + " now search body:" + term.utf8ToString());
//}
totHits.addAndGet(runQuery(s, new TermQuery(new Term("body", term))));
totHits.addAndGet(runQuery(s, new TermQuery(new Term("body", BytesRef.deepCopyOf(term)))));
}
}
//if (VERBOSE) {