aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-ownertrust.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-ownertrust.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-ownertrust.cpp')
-rw-r--r--lang/qt/tests/t-ownertrust.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/qt/tests/t-ownertrust.cpp b/lang/qt/tests/t-ownertrust.cpp
index f2fa3c8e..e9a43787 100644
--- a/lang/qt/tests/t-ownertrust.cpp
+++ b/lang/qt/tests/t-ownertrust.cpp
@@ -78,7 +78,7 @@ private Q_SLOTS:
});
job2->start(key, Key::Ultimate);
QSignalSpy spy (this, SIGNAL(asyncDone()));
- QVERIFY(spy.wait());
+ QVERIFY(spy.wait(QSIGNALSPY_TIMEOUT));
job = openpgp()->keyListJob(false, true, true);
result = job->exec(QStringList() << QStringLiteral("[email protected]"),
@@ -94,7 +94,7 @@ private Q_SLOTS:
Q_EMIT asyncDone();
});
job3->start(key, Key::Unknown);
- QVERIFY(spy.wait());
+ QVERIFY(spy.wait(QSIGNALSPY_TIMEOUT));
job = openpgp()->keyListJob(false, true, true);
result = job->exec(QStringList() << QStringLiteral("[email protected]"),