aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-encrypt.cpp
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-01-31 09:47:00 +0000
committerJustus Winter <[email protected]>2017-01-31 09:47:00 +0000
commitba594d85e35e63301755977234d3af88a167a215 (patch)
tree8651445c8564f4f342cace97f9fe98469e90f5b2 /lang/qt/tests/t-encrypt.cpp
parentcore: Add new context flag "redraw". (diff)
downloadgpgme-ba594d85e35e63301755977234d3af88a167a215.tar.gz
gpgme-ba594d85e35e63301755977234d3af88a167a215.zip
qt: Increase timeout when waiting for signals.
* lang/qt/tests/t-support.h (QSIGNALSPY_TIMEOUT): New macro. * lang/qt/tests/t-encrypt.cpp: Use the new macro as timeout when waiting for signals. * lang/qt/tests/t-keylist.cpp: Likewise. * lang/qt/tests/t-keylocate.cpp: Likewise. * lang/qt/tests/t-ownertrust.cpp: Likewise. * lang/qt/tests/t-wkspublish.cpp: Likewise. -- Increase the timeout when waiting for signals from 5 seconds to 60. This addresses intermittent test failures on slow machines. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/qt/tests/t-encrypt.cpp')
-rw-r--r--lang/qt/tests/t-encrypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/qt/tests/t-encrypt.cpp b/lang/qt/tests/t-encrypt.cpp
index 57b586d5..ba4a1c57 100644
--- a/lang/qt/tests/t-encrypt.cpp
+++ b/lang/qt/tests/t-encrypt.cpp
@@ -165,7 +165,7 @@ private Q_SLOTS:
job->start(keys, inptr, outptr, Context::AlwaysTrust);
QSignalSpy spy (this, SIGNAL(asyncDone()));
- QVERIFY(spy.wait());
+ QVERIFY(spy.wait(QSIGNALSPY_TIMEOUT));
}
void testSymmetricEncryptDecrypt()