aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2016-12-31 16:44:43 +0100
committerAlbert Astals Cid <[email protected]>2016-12-31 16:44:43 +0100
commit1fd3552575467bffb2010a89b1800e783ad02b88 (patch)
treeb33be9480c26f0c51a21027b0566590018ae0816
parentc6227cfc0c833d65bafa6c484f8d844431301bbe (diff)
Increase the timer from 500 to 5000 just in case CI got much slower
-rw-r--r--autotests/kfiledialog_unittest.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/autotests/kfiledialog_unittest.cpp b/autotests/kfiledialog_unittest.cpp
index 85faacd..1354222 100644
--- a/autotests/kfiledialog_unittest.cpp
+++ b/autotests/kfiledialog_unittest.cpp
@@ -298,8 +298,9 @@ private Q_SLOTS:
qDebug() << "4";
messageBoxSeen = false;
+ checkMessageBoxRun = false;
qDebug() << "4.1";
- QTimer::singleShot(500, this, SLOT(checkMessageBox()));
+ QTimer::singleShot(5000, this, SLOT(checkMessageBox()));
qDebug() << "4.2";
fw->slotOk();
@@ -307,6 +308,7 @@ private Q_SLOTS:
fw->slotCancel();
qDebug() << "5.1";
+ QTRY_VERIFY(checkMessageBoxRun);
QVERIFY(messageBoxSeen == messageBoxExpected);
qDebug() << "6";
@@ -315,6 +317,7 @@ private Q_SLOTS:
protected Q_SLOTS:
void checkMessageBox()
{
+ checkMessageBoxRun = true;
qDebug() << "A";
QDialog *msgbox = findMessageBox();
qDebug() << "B";
@@ -332,6 +335,7 @@ protected Q_SLOTS:
private:
bool messageBoxSeen;
+ bool checkMessageBoxRun;
static QString fileViewToString(KFile::FileView fv)
{