You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2020/06/17 07:36:26 UTC
[lucene-solr] branch master updated: LUCENE-9359: Avoid test
failures when the extra file is a dir.
This is an automated email from the ASF dual-hosted git repository.
jpountz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new ea0ad3e LUCENE-9359: Avoid test failures when the extra file is a dir.
ea0ad3e is described below
commit ea0ad3ec517d6d0944647ac497dbc014e6cac448
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Wed Jun 17 09:35:38 2020 +0200
LUCENE-9359: Avoid test failures when the extra file is a dir.
---
lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java b/lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java
index 1d6a4f4..4570f09 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java
@@ -19,6 +19,7 @@ package org.apache.lucene.index;
import org.apache.lucene.codecs.Codec;
import org.apache.lucene.codecs.CodecUtil;
+import org.apache.lucene.mockfile.ExtrasFS;
import org.apache.lucene.search.Sort;
import org.apache.lucene.store.BaseDirectoryWrapper;
import org.apache.lucene.store.Directory;
@@ -230,7 +231,7 @@ public class TestSegmentInfos extends LuceneTestCase {
// ok
}
corrupt = true;
- } else if (slowFileExists(corruptDir, file) == false) { // extraFS
+ } else if (ExtrasFS.isExtra(file) == false) {
corruptDir.copyFrom(dir, file, file, IOContext.DEFAULT);
}
}