mirror of https://github.com/apache/lucene.git
don't allow ExtrasFS for this test case
This commit is contained in:
parent
a07ac63357
commit
487e085264
|
@ -14,8 +14,8 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.lucene.store;
|
||||
|
||||
package org.apache.lucene.store;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
|
@ -26,6 +26,7 @@ import java.util.HashSet;
|
|||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.lucene.mockfile.ExtrasFS;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
|
||||
public class TestDirectory extends LuceneTestCase {
|
||||
|
@ -142,6 +143,7 @@ public class TestDirectory extends LuceneTestCase {
|
|||
|
||||
public void testListAll() throws Throwable {
|
||||
Path dir = createTempDir("testdir");
|
||||
assumeFalse("this test does not expect extra files", dir.getFileSystem().provider() instanceof ExtrasFS);
|
||||
Path file1 = Files.createFile(dir.resolve("tempfile1"));
|
||||
Path file2 = Files.createFile(dir.resolve("tempfile2"));
|
||||
Set<String> files = new HashSet<>(Arrays.asList(FSDirectory.listAll(dir)));
|
||||
|
|
Loading…
Reference in New Issue