┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/kfileitemmodeltest.cpp
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-08-04 21:04:56 +0200
committerFrank Reininghaus <[email protected]>2013-08-04 21:04:56 +0200
commit3f0ed8c44a676e791bb0a3836415336e4566aa79 (patch)
treec7cf3145a61e08167ea24cba5120ddbf0ec6169d /src/tests/kfileitemmodeltest.cpp
parent09bf5b66dc5136885c36e6b702047d56b627770d (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.
Diffstat (limited to 'src/tests/kfileitemmodeltest.cpp')
-rw-r--r--src/tests/kfileitemmodeltest.cpp3
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()