Skip to content

Commit

Permalink
Fix EventLogFileHandlerTests flaky test (#178)
Browse files Browse the repository at this point in the history
Signed-off-by: sruti1312 <srutiparthiban@gmail.com>
  • Loading branch information
sruti1312 committed Apr 5, 2022
1 parent 0f55dd5 commit c174a35
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ public void testFileWithMetrics() throws InterruptedException {

@Test
public void testNoFileWithNoMetrics() throws InterruptedException {
// Waiting and calling purgeQueueAndPersist method
// for tmp file to be renamed to timestamp file
Thread.sleep(5_000);
// Clearing out all the files in the directory again before we start.
eventLogFileHandler.deleteAllFilesWithPrivilege();

queuePurgerAndPersistor.purgeQueueAndPersist();
String bucketTime1 = String.valueOf(getTimeBucket());
assertFalse(
Expand Down

0 comments on commit c174a35

Please sign in to comment.