Test-Fix: possible race in test setup

On rare occasions, the test thread itself consumes faster than the producer threads feed new test data.
Make sure the test does not hangin such a situation
This commit is contained in:
Fischlurch 2017-08-22 20:07:33 +02:00
parent 6b56b46b6a
commit 5f0af2495b

View file

@ -722,6 +722,13 @@ namespace test {
session.join();
//------end-multithreaded-mutation---
// on rare occasions we (consumer thread)
// prematurely empty the queue...
while (not isnil(uiDispatcher))
{
uiDispatcher.invoke();
}
// now verify rootMock has been properly assimilated...
uint generatedBorgs = rootMock.scope.size();