Mute FsHealthServiceTests testFailsHealthOnIOException (#59382)
For #59380
This commit is contained in:
parent
2f9d4a1c7a
commit
7dcd943e1d
|
@ -26,6 +26,7 @@ import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.apache.lucene.mockfile.FilterFileChannel;
|
import org.apache.lucene.mockfile.FilterFileChannel;
|
||||||
import org.apache.lucene.mockfile.FilterFileSystemProvider;
|
import org.apache.lucene.mockfile.FilterFileSystemProvider;
|
||||||
|
import org.apache.lucene.util.Constants;
|
||||||
import org.elasticsearch.cluster.coordination.DeterministicTaskQueue;
|
import org.elasticsearch.cluster.coordination.DeterministicTaskQueue;
|
||||||
import org.elasticsearch.common.io.PathUtils;
|
import org.elasticsearch.common.io.PathUtils;
|
||||||
import org.elasticsearch.common.io.PathUtilsForTesting;
|
import org.elasticsearch.common.io.PathUtilsForTesting;
|
||||||
|
@ -99,6 +100,8 @@ public class FsHealthServiceTests extends ESTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testFailsHealthOnIOException() throws IOException {
|
public void testFailsHealthOnIOException() throws IOException {
|
||||||
|
assumeFalse("https://github.com/elastic/elasticsearch/issues/59380", Constants.WINDOWS);
|
||||||
|
|
||||||
FileSystem fileSystem = PathUtils.getDefaultFileSystem();
|
FileSystem fileSystem = PathUtils.getDefaultFileSystem();
|
||||||
FileSystemIOExceptionProvider disruptFileSystemProvider = new FileSystemIOExceptionProvider(fileSystem);
|
FileSystemIOExceptionProvider disruptFileSystemProvider = new FileSystemIOExceptionProvider(fileSystem);
|
||||||
fileSystem = disruptFileSystemProvider.getFileSystem(null);
|
fileSystem = disruptFileSystemProvider.getFileSystem(null);
|
||||||
|
|
Loading…
Reference in New Issue