diff options
author | Ivan Frade <ivan.frade@nokia.com> | 2010-05-10 19:18:25 +0300 |
---|---|---|
committer | Ivan Frade <ivan.frade@nokia.com> | 2010-05-10 19:18:25 +0300 |
commit | 755959bc0ce90afa7455cdeadc7e52705faa6351 (patch) | |
tree | b5713e7cdbccbe99b2cb33c8f92c0645e35425a4 /tests/functional-tests | |
parent | e2aa8aea70d7de9dfaab28afd3c4bde476c2f81e (diff) | |
download | tracker-755959bc0ce90afa7455cdeadc7e52705faa6351.tar.gz |
Functional tests: set big enough timeout for queries and updates
Diffstat (limited to 'tests/functional-tests')
-rw-r--r-- | 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 534cd0899..64966b982 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 |