[tracker] Functional tests: update timeout message



commit fde98b510bc84a0501c2eb7c2c80ed23c1f95df7
Author: Ivan Frade <ivan frade nokia com>
Date:   Mon May 10 19:21:30 2010 +0300

    Functional tests: update timeout message

 tests/functional-tests/10-sqlite-misused.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/10-sqlite-misused.py b/tests/functional-tests/10-sqlite-misused.py
index 81dc081..096bbda 100644
--- a/tests/functional-tests/10-sqlite-misused.py
+++ b/tests/functional-tests/10-sqlite-misused.py
@@ -54,6 +54,7 @@ class TestSqliteMisused (unittest.TestCase):
                 full_path = os.path.abspath(os.path.join (root, ttl_file))
                 self.files_counter += 1
                 self.resources.Load ("file://" + full_path,
+                                     timeout=30000,
                                      reply_handler=self.loaded_success_cb,
                                      error_handler=self.loaded_failed_cb)
         
@@ -64,7 +65,8 @@ class TestSqliteMisused (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):
@@ -85,7 +87,7 @@ class TestSqliteMisused (unittest.TestCase):
         assert False
 
     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]