From eb318a1ede0d23db7da0e5bd5576fc259bf49ed8 Mon Sep 17 00:00:00 2001 From: JiamingMai Date: Sun, 29 Dec 2024 23:29:12 +0800 Subject: [PATCH] fix tests --- .../trino/filesystem/alluxio/TestAlluxioFileIterator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/trino-filesystem-alluxio/src/test/java/io/trino/filesystem/alluxio/TestAlluxioFileIterator.java b/lib/trino-filesystem-alluxio/src/test/java/io/trino/filesystem/alluxio/TestAlluxioFileIterator.java index 5e08b4f1a21..2c673c4ecb4 100644 --- a/lib/trino-filesystem-alluxio/src/test/java/io/trino/filesystem/alluxio/TestAlluxioFileIterator.java +++ b/lib/trino-filesystem-alluxio/src/test/java/io/trino/filesystem/alluxio/TestAlluxioFileIterator.java @@ -33,7 +33,7 @@ final class TestAlluxioFileIterator @Test void testNext() throws IOException { - String alluxioDirPath = "alluxio://master:8020/s3a/tables/sales"; + String alluxioDirPath = "alluxio://master:19998"; FileInfo fileInfo = new FileInfo(); fileInfo.setName(FILE_NAME); fileInfo.setPath(FILE_PATH); @@ -44,9 +44,9 @@ void testNext() throws IOException { alluxioDirPath); FileEntry fileEntry = iterator.next(); assertThat(fileEntry.location().toString()) - .isEqualTo(alluxioDirPath + "/" + FILE_NAME); + .isEqualTo(alluxioDirPath + FILE_PATH); - alluxioDirPath = "alluxio:/s3a/tables/sales"; + alluxioDirPath = "alluxio:/"; fileInfo = new FileInfo(); fileInfo.setName(FILE_NAME); fileInfo.setPath(FILE_PATH); @@ -57,6 +57,6 @@ void testNext() throws IOException { alluxioDirPath); fileEntry = iterator.next(); assertThat(fileEntry.location().toString()) - .isEqualTo(alluxioDirPath + "/" + FILE_NAME); + .isEqualTo(alluxioDirPath + FILE_PATH); } }