diff options
| author | Frank Reininghaus <[email protected]> | 2013-08-04 21:04:56 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-08-04 21:04:56 +0200 |
| commit | 3f0ed8c44a676e791bb0a3836415336e4566aa79 (patch) | |
| tree | c7cf3145a61e08167ea24cba5120ddbf0ec6169d | |
| parent | 09bf5b66dc5136885c36e6b702047d56b627770d (diff) | |
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.
| -rw-r--r-- | src/tests/kfileitemmodeltest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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() |
