Skip to content

Commit 4666b3a

Browse files
committed
Disable tests when direct IO turned off
1 parent 73e821b commit 4666b3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/test/java/org/elasticsearch/index/codec/vectors/es818/ES818BinaryQuantizedVectorsFormatTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ private Directory newFSDirectory() throws IOException {
373373
}
374374

375375
static void checkDirectIOSupported() {
376+
assumeTrue("test requires direct IO", ES818BinaryQuantizedVectorsFormat.USE_DIRECT_IO);
376377
Path path = createTempDir("directIOProbe");
377378
try (Directory dir = open(path); IndexOutput out = dir.createOutput("out", IOContext.DEFAULT)) {
378379
out.writeString("test");

0 commit comments

Comments
 (0)