From 985f65740bdf21c24c6f6aca8d1b80bd8c556af8 Mon Sep 17 00:00:00 2001 From: tangyoupeng Date: Wed, 11 Dec 2024 19:34:08 +0800 Subject: [PATCH] fix test --- .github/workflows/sdktest.yml | 6 +++--- .../src/test/java/io/juicefs/JuiceFileSystemBgTaskTest.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sdktest.yml b/.github/workflows/sdktest.yml index 67c9e0e0431e..f191c0708934 100644 --- a/.github/workflows/sdktest.yml +++ b/.github/workflows/sdktest.yml @@ -63,9 +63,9 @@ jobs: ln -s inner_sym_target inner_sym_link mkdir etc chmod 777 etc - echo `hostname` > /jfs/etc/nodes - echo "tom:3001" > /jfs/etc/users - echo "g1:2001:tom" > /jfs/etc/groups + echo `hostname` > etc/nodes + echo "tom:3001" > users + echo "g1:2001:tom" > groups - name: Sdk Test run: | diff --git a/sdk/java/src/test/java/io/juicefs/JuiceFileSystemBgTaskTest.java b/sdk/java/src/test/java/io/juicefs/JuiceFileSystemBgTaskTest.java index a1aee25b02c0..925203367cd2 100644 --- a/sdk/java/src/test/java/io/juicefs/JuiceFileSystemBgTaskTest.java +++ b/sdk/java/src/test/java/io/juicefs/JuiceFileSystemBgTaskTest.java @@ -20,8 +20,8 @@ public void testJuiceFileSystemBgTask() throws Exception { conf.addResource(JuiceFileSystemTest.class.getClassLoader().getResourceAsStream("core-site.xml")); conf.set(FS_TRASH_INTERVAL_KEY, "6"); conf.set(FS_TRASH_CHECKPOINT_INTERVAL_KEY, "2"); - conf.set("juicefs.users", "jfs://dev/etc/users"); - conf.set("juicefs.groups", "jfs://dev/etc/groups"); + conf.set("juicefs.users", "jfs://dev/users"); + conf.set("juicefs.groups", "jfs://dev/groups"); conf.set("juicefs.discover-nodes-url", "jfs://dev/etc/nodes"); int threads = 100; int instances = 1000; @@ -32,7 +32,7 @@ public void testJuiceFileSystemBgTask() throws Exception { try (JuiceFileSystem jfs = new JuiceFileSystem()) { jfs.initialize(URI.create("jfs://dev/"), conf); if (ThreadLocalRandom.current().nextInt(10)%2==0) { - jfs.getFileBlockLocations(jfs.getFileStatus(new Path("jfs://dev/etc/users")), 0, 1000); + jfs.getFileBlockLocations(jfs.getFileStatus(new Path("jfs://dev/users")), 0, 1000); } } catch (Exception e) { fail("unexpected exception");