Prechádzať zdrojové kódy

Mute FsHealthServiceTests testFailsHealthOnIOException (#59382)

For #59380
David Kyle 5 rokov pred
rodič
commit
ef8b414ff8

+ 3 - 0
server/src/test/java/org/elasticsearch/monitor/fs/FsHealthServiceTests.java

@@ -26,6 +26,7 @@ import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
 import org.apache.lucene.mockfile.FilterFileChannel;
 import org.apache.lucene.mockfile.FilterFileSystemProvider;
+import org.apache.lucene.util.Constants;
 import org.elasticsearch.cluster.coordination.DeterministicTaskQueue;
 import org.elasticsearch.common.io.PathUtils;
 import org.elasticsearch.common.io.PathUtilsForTesting;
@@ -99,6 +100,8 @@ public class FsHealthServiceTests extends ESTestCase {
     }
 
     public void testFailsHealthOnIOException() throws IOException {
+        assumeFalse("https://github.com/elastic/elasticsearch/issues/59380", Constants.WINDOWS);
+        
         FileSystem fileSystem = PathUtils.getDefaultFileSystem();
         FileSystemIOExceptionProvider disruptFileSystemProvider = new FileSystemIOExceptionProvider(fileSystem);
         fileSystem = disruptFileSystemProvider.getFileSystem(null);