From 8353293c358d2e4cfc4b041b31f2b1eb8cad5c05 Mon Sep 17 00:00:00 2001 From: Raphael Groner Date: Dec 07 2016 20:40:16 +0000 Subject: add patch --- diff --git a/delay-test_Cryptography_PGP.patch b/delay-test_Cryptography_PGP.patch new file mode 100644 index 0000000..8068011 --- /dev/null +++ b/delay-test_Cryptography_PGP.patch @@ -0,0 +1,18 @@ +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";