[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasma-integration] autotests: Increase the timer from 500 to 5000 just in case CI got much slower
From: Albert Astals Cid <null () kde ! org>
Date: 2016-12-31 15:45:01
Message-ID: E1cNLq9-0004EI-Q4 () code ! kde ! org
[Download RAW message or body]
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/1fd3552575467bffb2010a89b1800e783ad02b88
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)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic