mirror of https://github.com/apache/nifi.git
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:
parent
7c27d4c588
commit
ff65b42e88
|
@ -228,6 +228,9 @@ class EncryptedWriteAheadProvenanceRepositoryTest {
|
||||||
repo.registerEvent(record)
|
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)
|
final List<ProvenanceEventRecord> recoveredRecords = repo.getEvents(0L, RECORD_COUNT + 1)
|
||||||
|
|
||||||
logger.info("Recovered ${recoveredRecords.size()} events: ")
|
logger.info("Recovered ${recoveredRecords.size()} events: ")
|
||||||
|
|
Loading…
Reference in New Issue