diff --git a/tests/Cryptography/test_Cryptography_PGP.cpp b/tests/Cryptography/test_Cryptography_PGP.cpp
index 2d33a4d..19c1ad6 100644
--- a/tests/Cryptography/test_Cryptography_PGP.cpp
+++ b/tests/Cryptography/test_Cryptography_PGP.cpp
@@ -106,10 +106,12 @@ void CryptographyPGPTest::testDecryption()
int i = 0;
while (data.isValid() && data.data(Imap::Mailbox::RolePartCryptoNotFinishedYet).toBool() && i++ < 1000) {
- QTest::qWait(10);
+ QTest::qWait(20);
}
// allow for event processing, so that the model can retrieve the results
QCoreApplication::processEvents();
+ // ensure that we're done now
+ QVERIFY(!data.data(Imap::Mailbox::RolePartCryptoNotFinishedYet).toBool());
if (!qcaErrorSpy.isEmpty() && successful) {
qDebug() << "Unexpected failure in crypto";