From: Frank Reininghaus Date: Sun, 4 Aug 2013 19:04:56 +0000 (+0200) Subject: Make KFileItemModelTest faster X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/3f0ed8c44a676e791bb0a3836415336e4566aa79 Make KFileItemModelTest faster The 500 ms timeout before items are resorted does not make much sense in the unit test. Removing this delay makes the test run much faster. --- diff --git a/src/tests/kfileitemmodeltest.cpp b/src/tests/kfileitemmodeltest.cpp index 0ad7a378d..fcc805269 100644 --- a/src/tests/kfileitemmodeltest.cpp +++ b/src/tests/kfileitemmodeltest.cpp @@ -106,6 +106,9 @@ void KFileItemModelTest::init() m_testDir = new TestDir(); m_model = new KFileItemModel(); m_model->m_dirLister->setAutoUpdate(false); + + // Reduce the timer interval to make the test run faster. + m_model->m_resortAllItemsTimer->setInterval(0); } void KFileItemModelTest::cleanup()