Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JiamingMai committed Oct 26, 2023
1 parent b9c7124 commit ad2ac8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,8 @@ public void testRegxPatternFileFilter() throws Exception {
Thread.sleep(1000);
}
assertTrue(mOutput.toString().contains("Inodes Processed: 1"));
assertEquals(0, mFileSystem.getStatus(uriA).getInAlluxioPercentage());
assertEquals(100, mFileSystem.getStatus(uriB).getInAlluxioPercentage());
assertEquals(0, mFileSystem.getStatus(uriC).getInAlluxioPercentage());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DoraLoadCommandWithVirtualBlockIntegrationTest() throws IOException {
@Override
public void before() throws Exception {
mLocalAlluxioClusterResource.setProperty(PropertyKey.MASTER_SCHEDULER_INITIAL_DELAY, "1s")
.setProperty(PropertyKey.DORA_READ_VIRTUAL_BLOCK_SIZE, "30MB")
.setProperty(PropertyKey.DORA_READ_VIRTUAL_BLOCK_SIZE, "2MB")
.setProperty(PropertyKey.UNDERFS_XATTR_CHANGE_ENABLED, false);
super.before();
}
Expand All @@ -48,11 +48,11 @@ public void testCommand() throws Exception {
String path = testRoot.getAbsolutePath();
mTestFolder.newFolder("testRoot/testDirectory");

int lengthA = 16 * Constants.MB;
int lengthA = 1 * Constants.MB;
createByteFileInUfs("/testRoot/testFileA", lengthA);
int lengthB = 32 * Constants.MB;
int lengthB = 3 * Constants.MB;
createByteFileInUfs("/testRoot/testFileB", lengthB);
int lengthC = 64 * Constants.MB;
int lengthC = 5 * Constants.MB;
createByteFileInUfs("/testRoot/testDirectory/testFileC", lengthC);

AlluxioURI uriA = new AlluxioURI("/testRoot/testFileA");
Expand Down

0 comments on commit ad2ac8b

Please sign in to comment.