]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make KFileItemModelTest faster
authorFrank Reininghaus <frank78ac@googlemail.com>
Sun, 4 Aug 2013 19:04:56 +0000 (21:04 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sun, 4 Aug 2013 19:04:56 +0000 (21:04 +0200)
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.

src/tests/kfileitemmodeltest.cpp

index 0ad7a378dd9870895aba143c75fb873b96fbb86f..fcc80526954562a2c77b89f4a5042303dbf74244 100644 (file)
@@ -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()