QAmqpQueue Tests: Wait for destroyed signal.

Same issue, maybe with the state machine the QAmqpQueue takes a little
longer to disappear.
This commit is contained in:
Stuart Longland 2015-04-08 10:38:10 +10:00
parent f79e96fae8
commit 568dc6770a
1 changed files with 1 additions and 0 deletions

View File

@ -683,6 +683,7 @@ void tst_QAMQPQueue::cleanupOnDeletion()
QVERIFY(waitForSignal(queue, SIGNAL(declared())));
queue->close();
queue->deleteLater();
QVERIFY(waitForSignal(queue, SIGNAL(destroyed())));
// now create, declare, and close the right way
queue = client->createQueue("test-deletion");