summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson.kde@gmail.com>2016-01-24 14:11:46 (GMT)
committerAlex Richardson <arichardson.kde@gmail.com>2016-01-24 14:11:46 (GMT)
commit449d727707be4b2d8e06cf41bedf489327889414 (patch)
tree7e2a0aa635016493901fb2f1d856d5c6ff8536fc
parent0772330f79fd9c5622c2326f019d22a1b7a353b2 (diff)
Fix parttest by increasing the wait duration
-rw-r--r--autotests/parttest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/autotests/parttest.cpp b/autotests/parttest.cpp
index 3094cb4..1ed7bbc 100644
--- a/autotests/parttest.cpp
+++ b/autotests/parttest.cpp
@@ -196,7 +196,9 @@ void PartTest::testSelectText()
QTest::mouseMove(part.m_pageView->viewport(), QPoint(width * 0.12, height * 0.16));
QTest::mousePress(part.m_pageView->viewport(), Qt::LeftButton, Qt::NoModifier, QPoint(width * 0.12, height * 0.16));
QTest::mouseMove(part.m_pageView->viewport(), QPoint(width * 0.8, height * 0.16));
- QTest::qWait(100); // without this wait the test fails
+ // without this wait the test fails. 100ms were enough on my local system, but when running under valgrind
+ // or on the CI server we need to wait longer.
+ QTest::qWait(1000);
QTest::mouseRelease(part.m_pageView->viewport(), Qt::LeftButton, Qt::NoModifier, QPoint(width * 0.8, height * 0.16));
QApplication::clipboard()->clear();