diff --git a/x-pack/plugin/esql-datasource-ndjson/qa/build.gradle b/x-pack/plugin/esql-datasource-ndjson/qa/build.gradle index 8fef6a0094c95..167483be29308 100644 --- a/x-pack/plugin/esql-datasource-ndjson/qa/build.gradle +++ b/x-pack/plugin/esql-datasource-ndjson/qa/build.gradle @@ -52,6 +52,7 @@ dependencies { tasks.named('javaRestTest') { usesDefaultDistribution("to be triaged") maxParallelForks = 1 + enabled = buildParams.snapshotBuild // Increase timeouts for S3 operations which may take longer than standard queries systemProperty 'tests.rest.client_timeout', '60' diff --git a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/datasources/spi/StoragePathTests.java b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/datasources/spi/StoragePathTests.java index 99436d7291fa1..168e181401b7c 100644 --- a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/datasources/spi/StoragePathTests.java +++ b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/datasources/spi/StoragePathTests.java @@ -120,11 +120,15 @@ public void testFileUriWindowsTripleSlash() { assertEquals("/C:/path/to/file.parquet", path.path()); } - public void testFileUriFunctionOnUnix() { + public void testFileUriFunction() { java.nio.file.Path p = PathUtils.get("/tmp/test/data.parquet"); String uri = StoragePath.fileUri(p); - assertEquals("file:///tmp/test/data.parquet", uri); + String absPath = p.toAbsolutePath().toString().replace('\\', '/'); + if (absPath.startsWith("/") == false) { + absPath = "/" + absPath; + } + assertEquals("file://" + absPath, uri); StoragePath sp = StoragePath.of(uri); - assertEquals("/tmp/test/data.parquet", sp.path()); + assertEquals(absPath, sp.path()); } }