Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bharatviswa504 committed Dec 11, 2020
1 parent a8ee672 commit 3a2be63
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,11 @@ public void testRatisLogParsing() throws Exception {

String[] ratisDirs = omMetaDir.list();
Assert.assertNotNull(ratisDirs);
Assert.assertEquals(2, ratisDirs.length);

File groupDir = null;
for (int i=0; i< ratisDirs.length; i++) {
if (ratisDirs[i].equals("snapshot")) {
continue;
}
groupDir = new File(omMetaDir, ratisDirs[i]);
}
Assert.assertEquals(1, ratisDirs.length);

File groupDir = new File(omMetaDir, ratisDirs[0]);

Assert.assertNotNull(groupDir);
Assert.assertFalse(groupDir.toString(),
groupDir.getName().contains("snapshot"));
Assert.assertTrue(groupDir.isDirectory());
File currentDir = new File(groupDir, "current");
File logFile = new File(currentDir, "log_inprogress_0");
Expand Down

0 comments on commit 3a2be63

Please sign in to comment.