Git commit 1fd3552575467bffb2010a89b1800e783ad02b88 by Albert Astals Cid. Committed on 31/12/2016 at 15:44. Pushed by aacid into branch 'master'. Increase the timer from 500 to 5000 just in case CI got much slower M +5 -1 autotests/kfiledialog_unittest.cpp https://commits.kde.org/plasma-integration/1fd3552575467bffb2010a89b1800e78= 3ad02b88 diff --git a/autotests/kfiledialog_unittest.cpp b/autotests/kfiledialog_uni= ttest.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 =3D false; + checkMessageBoxRun =3D 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 =3D=3D messageBoxExpected); = qDebug() << "6"; @@ -315,6 +317,7 @@ private Q_SLOTS: protected Q_SLOTS: void checkMessageBox() { + checkMessageBoxRun =3D true; qDebug() << "A"; QDialog *msgbox =3D findMessageBox(); qDebug() << "B"; @@ -332,6 +335,7 @@ protected Q_SLOTS: = private: bool messageBoxSeen; + bool checkMessageBoxRun; = static QString fileViewToString(KFile::FileView fv) {