diff --git a/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java b/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java index 72954c82e55..038c8815475 100644 --- a/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java +++ b/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java @@ -37,6 +37,7 @@ import org.apache.lucene.index.IndexWriterConfig; import org.apache.lucene.index.TestIndexWriterReader; import org.apache.lucene.mockfile.FilterPath; import org.apache.lucene.mockfile.WindowsFS; +import org.apache.lucene.util.Constants; import org.apache.lucene.util.TestUtil; public class TestFileSwitchDirectory extends BaseDirectoryTestCase { @@ -140,6 +141,7 @@ public class TestFileSwitchDirectory extends BaseDirectoryTestCase { public void testDeleteAndList() throws IOException { // relies on windows semantics Path path = createTempDir(); + assumeFalse("Irony we seem to not emulate windows well enough", Constants.WINDOWS); FileSystem fs = new WindowsFS(path.getFileSystem()).getFileSystem(URI.create("file:///")); Path indexPath = new FilterPath(path, fs); try (final FileSwitchDirectory dir = new FileSwitchDirectory(Collections.singleton("tim"),