NIFI-4110 Added Thread.sleep() to ensure provenance event indexing occurs before retrieval and unit test passes.

Signed-off-by: Scott Aslan <scottyaslan@gmail.com>

This closes #1935
This commit is contained in:
Andy LoPresto 2017-06-22 16:19:06 -04:00 committed by Scott Aslan
parent 7c27d4c588
commit ff65b42e88
1 changed files with 3 additions and 0 deletions

View File

@ -228,6 +228,9 @@ class EncryptedWriteAheadProvenanceRepositoryTest {
repo.registerEvent(record)
}
// Ensure there is not a timing issue retrieving all records
Thread.sleep(1000)
final List<ProvenanceEventRecord> recoveredRecords = repo.getEvents(0L, RECORD_COUNT + 1)
logger.info("Recovered ${recoveredRecords.size()} events: ")