From f79e96fae803b3e32e0d07fa18ad2f6b028b8081 Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Wed, 8 Apr 2015 10:19:44 +1000 Subject: [PATCH] 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. --- tests/auto/qamqpexchange/tst_qamqpexchange.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qamqpexchange/tst_qamqpexchange.cpp b/tests/auto/qamqpexchange/tst_qamqpexchange.cpp index 38011a9..43d7c3a 100644 --- a/tests/auto/qamqpexchange/tst_qamqpexchange.cpp +++ b/tests/auto/qamqpexchange/tst_qamqpexchange.cpp @@ -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");