[tracker] Functional tests: set big enough timeout for queries and updates
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Functional tests: set big enough timeout for queries and updates
- Date: Mon, 10 May 2010 16:23:52 +0000 (UTC)
commit 755959bc0ce90afa7455cdeadc7e52705faa6351
Author: Ivan Frade <ivan frade nokia com>
Date: Mon May 10 19:18:25 2010 +0300
Functional tests: set big enough timeout for queries and updates
tests/functional-tests/11-sqlite-batch-misused.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/11-sqlite-batch-misused.py b/tests/functional-tests/11-sqlite-batch-misused.py
index 534cd08..64966b9 100644
--- a/tests/functional-tests/11-sqlite-batch-misused.py
+++ b/tests/functional-tests/11-sqlite-batch-misused.py
@@ -69,6 +69,7 @@ class TestSqliteBatchMisused (unittest.TestCase):
if counter == BATCH_SIZE:
query = "INSERT {" + current_batch + "}"
self.resources.BatchSparqlUpdate (query,
+ timeout=20000,
reply_handler=self.batch_success_cb,
error_handler=self.batch_failed_cb)
self.run_a_query ()
@@ -84,7 +85,7 @@ class TestSqliteBatchMisused (unittest.TestCase):
def run_a_query (self):
QUERY = "SELECT ?u ?title WHERE { ?u a nie:InformationElement; nie:title ?title. }"
- self.resources.SparqlQuery (QUERY, reply_handler=self.reply_cb, error_handler=self.error_handler)
+ self.resources.SparqlQuery (QUERY, timeout=20000, reply_handler=self.reply_cb, error_handler=self.error_handler)
return True
def reply_cb (self, results):
@@ -104,7 +105,7 @@ class TestSqliteBatchMisused (unittest.TestCase):
print "Failed processing a batch"
def timeout_cb (self):
- print "Timeout cb"
+ print "Forced timeout after 60 sec."
self.main_loop.quit ()
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]