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:
parent
6b56b46b6a
commit
5f0af2495b
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue