NO-JIRA: Trivial test fix

This commit is contained in:
Clebert Suconic 2017-04-23 22:12:23 -04:00
parent 7074baea2a
commit 7facd28a18
1 changed files with 7 additions and 1 deletions

View File

@ -978,7 +978,13 @@ public abstract class JournalImplTestUnit extends JournalImplTestBase {
add(i);
}
Assert.assertEquals(calculateNumberOfFiles(journal, fileSize, journal.getAlignment(), 200, recordLength, 200, JournalImpl.SIZE_DELETE_RECORD_TX, 1, JournalImpl.SIZE_COMMIT_RECORD, 10, JournalImpl.SIZE_ADD_RECORD + recordLength), journal.getDataFilesCount());
int files = calculateNumberOfFiles(journal, fileSize, journal.getAlignment(), 200, recordLength, 200, JournalImpl.SIZE_DELETE_RECORD_TX, 1, JournalImpl.SIZE_COMMIT_RECORD, 10, JournalImpl.SIZE_ADD_RECORD + recordLength);
for (int i = 0; i < 100 && journal.getDataFilesCount() != files; i++) {
Thread.sleep(10);
}
Assert.assertEquals(files, journal.getDataFilesCount());
Assert.assertEquals(0, journal.getFreeFilesCount());
Assert.assertEquals(10, journal.getIDMapSize());