diff options
author | Tapani Mikola <tapani.mikola@nokia.com> | 2012-05-26 16:39:34 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-26 15:57:27 +0200 |
commit | b711a963bf45f3954812e3453a5852182953313d (patch) | |
tree | 24f2e80941297e85d9bed150db0daf45899860d9 /tests | |
parent | 7a51dfa6bb7e49eb7e36734df78c2c439343cfb5 (diff) |
Fix the real reason for testcase slowness
And clean up one unused variable.
Change-Id: I740ec41f7931d8a01d9827855d180b44fc5bd0aa
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/jsondbcachinglistmodel/testjsondbcachinglistmodel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/jsondbcachinglistmodel/testjsondbcachinglistmodel.cpp b/tests/auto/jsondbcachinglistmodel/testjsondbcachinglistmodel.cpp index 30c95756..5a50c930 100644 --- a/tests/auto/jsondbcachinglistmodel/testjsondbcachinglistmodel.cpp +++ b/tests/auto/jsondbcachinglistmodel/testjsondbcachinglistmodel.cpp @@ -1177,7 +1177,6 @@ void TestJsonDbCachingListModel::checkAddNotification() { resetWaitFlags(); int id = 0; - QVariantList insertedItems; for (int i = 0; i < 10; i++) { QVariantMap item; item.insert("_type", __FUNCTION__); @@ -1387,9 +1386,9 @@ void TestJsonDbCachingListModel::listProperty() void TestJsonDbCachingListModel::changeQuery() { resetWaitFlags(); - QVariantMap item; for (int i=0; i < 10; i++) { + QVariantMap item; item.insert("_type", __FUNCTION__); item.insert("name", QString("Arnie_%1").arg(i)); int id = create(item, "com.nokia.shared.1"); @@ -1532,8 +1531,8 @@ void TestJsonDbCachingListModel::getItemNotInCache() createIndex("number", "number"); - QVariantMap item; for (int i=0; i < 3000; i++) { + QVariantMap item; item.insert("_type", __FUNCTION__); item.insert("number", i%300); int id = create(item, "com.nokia.shared.1"); |