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 0fa7074cf1
commit cd642d5d9b

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