mirror of https://github.com/apache/lucene.git
fix test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1540288 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3d55eaeaa8
commit
9fea8e4a27
|
@ -1497,9 +1497,7 @@ public abstract class BasePostingsFormatTestCase extends LuceneTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Also test seeking the TermsEnum:
|
// Also test seeking the TermsEnum:
|
||||||
// must make copy because this very code sometimes makes puts while iterating?!
|
for(String term : termFreqs.keySet()) {
|
||||||
Set<String> copy = new HashSet<String>(termFreqs.keySet());
|
|
||||||
for(String term : copy) {
|
|
||||||
if (termsEnum.seekExact(new BytesRef(term))) {
|
if (termsEnum.seekExact(new BytesRef(term))) {
|
||||||
if (random().nextBoolean()) {
|
if (random().nextBoolean()) {
|
||||||
docs = termsEnum.docs(null, docs, DocsEnum.FLAG_FREQS);
|
docs = termsEnum.docs(null, docs, DocsEnum.FLAG_FREQS);
|
||||||
|
|
Loading…
Reference in New Issue