QAmqpExchange tests: Wait for destroyed signal.

Maybe my laptop is too quick, but it seems the exchange hangs around a
little too long for this test to pass.
This commit is contained in:
Stuart Longland 2015-04-08 10:19:44 +10:00
parent 31f90a17a0
commit f79e96fae8
1 changed files with 1 additions and 0 deletions

View File

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