Permalink
Browse files

Fix BDB storage engine test

  • Loading branch information...
1 parent 0f5c074 commit e64bcd8f13e5f7440e3d19416d774f7759ecda88 @vinothchandar vinothchandar committed Jan 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/unit/voldemort/store/bdb/BdbStorageEngineTest.java
@@ -227,7 +227,9 @@ public void testNativeBackup() throws Exception {
store.nativeBackup(backupToDir, false, false, new AsyncOperationStatus(0, "dummy"));
// Check that there are now two files, and the first one hasn't
// changed
- assertArrayEquals(backupToDir.list(), new String[] { "00000000.jdb", "00000001.jdb" });
+ String[] backedUp = backupToDir.list();
+ Arrays.sort(backedUp);
+ assertArrayEquals(backedUp, new String[] { "00000000.jdb", "00000001.jdb" });
assertEquals(backupFileModified, backupToDir.listFiles()[0].lastModified());
} finally {
deleteDir(backupToDir);

0 comments on commit e64bcd8

Please sign in to comment.