From: Frank Reininghaus Date: Thu, 9 Jun 2011 12:50:33 +0000 (+0200) Subject: Wait longer for the selectionChanged signal X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/6d4cfc25d404f5119701504fc8bfae4c7f04ad48 Wait longer for the selectionChanged signal The timeout for the selectionChanged signal is increased in DolphinViewTest_AllViewModes::verifySelectedItemsCount(). I hope that this will fix a part of the failures seen in http://my.cdash.org/testDetails.php?test=6350150&build=196639 --- diff --git a/src/tests/dolphinviewtest_allviewmodes.cpp b/src/tests/dolphinviewtest_allviewmodes.cpp index 3c36d9b06..cac4c7102 100644 --- a/src/tests/dolphinviewtest_allviewmodes.cpp +++ b/src/tests/dolphinviewtest_allviewmodes.cpp @@ -579,7 +579,7 @@ QAbstractItemView* DolphinViewTest_AllViewModes::initView(DolphinView* view) con void DolphinViewTest_AllViewModes::verifySelectedItemsCount(DolphinView* view, int itemsCount) const { QSignalSpy spySelectionChanged(view, SIGNAL(selectionChanged(const KFileItemList&))); - QVERIFY(QTest::kWaitForSignal(view, SIGNAL(selectionChanged(const KFileItemList&)), 500)); + QVERIFY(QTest::kWaitForSignal(view, SIGNAL(selectionChanged(const KFileItemList&)), 2000)); QCOMPARE(view->selectedItems().count(), itemsCount); QCOMPARE(view->selectedItemsCount(), itemsCount);