]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/kitemlistkeyboardsearchmanagertest.cpp
Increase the timeout in KItemListKeyboardSearchManager to 5 seconds
[dolphin.git] / src / tests / kitemlistkeyboardsearchmanagertest.cpp
index be483930d9b169308891de5dc493182758ef120f..14a09a31cc82b89737bbad61c1bd1695ed922cd8 100644 (file)
@@ -75,9 +75,9 @@ void KItemListKeyboardSearchManagerTest::testAbortedKeyboardSearch()
     QCOMPARE(spy.count(), 1);
     QCOMPARE(spy.takeFirst(), QList<QVariant>() << "fi" << false);
 
-    // If the delay between two key presses is larger than QApplication::keyboardInputInterval(),
+    // If the delay between two key presses is larger than 5000 milliseconds,
     // a new search is started. We add a small safety margin to avoid race conditions.
-    QTest::qWait(QApplication::keyboardInputInterval() + 10);
+    QTest::qWait(5000 + 10);
 
     m_keyboardSearchManager.addKeys("l");
     QCOMPARE(spy.count(), 1);