test: fixed waitForThread() in MessageQueueTestSuite to always wait at least one cycle
This commit is contained in:
@@ -239,10 +239,11 @@ private:
|
||||
|
||||
void waitForThread() const
|
||||
{
|
||||
static const int THREAD_WAIT_TIME_MS = 5;
|
||||
while (MessageQueue::getInstance()->hasMessagesQueued())
|
||||
static const int THREAD_WAIT_TIME_MS = 20;
|
||||
do
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(THREAD_WAIT_TIME_MS));
|
||||
}
|
||||
while (MessageQueue::getInstance()->hasMessagesQueued());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user