Skip to content

Commit 1dbe554

Browse files
committed
Suppress extras FS on caching directory tests
This filesystem needs to be suppressed during these tests because it adds random files to the directory upon directory creation. That means that the size of these directories is off from what we expect them to be. Rather than loosening the assertion which could hide bugs on real directories, this commit suppresses this file system in this test suite.
1 parent 32cbbc2 commit 1dbe554

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/test/java/org/elasticsearch/index/store/ByteSizeCachingDirectoryTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
import org.apache.lucene.store.FilterDirectory;
2424
import org.apache.lucene.store.IOContext;
2525
import org.apache.lucene.store.IndexOutput;
26+
import org.apache.lucene.util.LuceneTestCase;
2627
import org.elasticsearch.common.unit.TimeValue;
2728
import org.elasticsearch.test.ESTestCase;
2829

2930
import java.io.IOException;
3031

32+
@LuceneTestCase.SuppressFileSystems("ExtrasFS")
3133
public class ByteSizeCachingDirectoryTests extends ESTestCase {
3234

3335
private static class LengthCountingDirectory extends FilterDirectory {

0 commit comments

Comments
 (0)