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.
This commit is contained in:
Frank Reininghaus 2013-08-04 21:04:56 +02:00
parent 09bf5b66dc
commit 3f0ed8c44a

View 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()