diff options
author | Justus Winter <[email protected]> | 2017-01-31 09:47:00 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-01-31 09:47:00 +0000 |
commit | ba594d85e35e63301755977234d3af88a167a215 (patch) | |
tree | 8651445c8564f4f342cace97f9fe98469e90f5b2 /lang/qt/tests/t-keylocate.cpp | |
parent | core: Add new context flag "redraw". (diff) | |
download | gpgme-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-keylocate.cpp')
-rw-r--r-- | lang/qt/tests/t-keylocate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/qt/tests/t-keylocate.cpp b/lang/qt/tests/t-keylocate.cpp index 550305c9..8c99c8bd 100644 --- a/lang/qt/tests/t-keylocate.cpp +++ b/lang/qt/tests/t-keylocate.cpp @@ -88,7 +88,7 @@ private Q_SLOTS: }); job->start(QStringList() << mTestpattern); QSignalSpy spy (this, SIGNAL(asyncDone())); - QVERIFY(spy.wait()); + QVERIFY(spy.wait(QSIGNALSPY_TIMEOUT)); qputenv("GNUPGHOME", oldHome.toUtf8()); } #endif @@ -122,7 +122,7 @@ private Q_SLOTS: }); job->start(QStringList() << mTestpattern); QSignalSpy spy (this, SIGNAL(asyncDone())); - QVERIFY(spy.wait()); + QVERIFY(spy.wait(QSIGNALSPY_TIMEOUT)); } private: |