Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyoupeng committed Dec 11, 2024
1 parent 895bddf commit 985f657
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sdktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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");
Expand Down

0 comments on commit 985f657

Please sign in to comment.