[tracker] functional-tests: Wait for the store before starting the tests
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] functional-tests: Wait for the store before starting the tests
- Date: Wed, 6 Oct 2010 16:57:39 +0000 (UTC)
commit caced2332be1f850cacabb641ed02a7d565b759a
Author: Ivan Frade <ivan frade nokia com>
Date: Wed Oct 6 19:09:30 2010 +0300
functional-tests: Wait for the store before starting the tests
tests/functional-tests/common/utils/minertest.py | 1 +
tests/functional-tests/common/utils/storetest.py | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/minertest.py b/tests/functional-tests/common/utils/minertest.py
index 77ff45f..440dbb9 100644
--- a/tests/functional-tests/common/utils/minertest.py
+++ b/tests/functional-tests/common/utils/minertest.py
@@ -90,6 +90,7 @@ class CommonTrackerMinerTest (ut.TestCase):
self.system.tracker_miner_fs_testing_start (confdir)
# Returns when ready
self.tracker = StoreHelper ()
+ self.tracker.wait ()
print "Ready to go!"
@classmethod
diff --git a/tests/functional-tests/common/utils/storetest.py b/tests/functional-tests/common/utils/storetest.py
index 47af43e..6623374 100644
--- a/tests/functional-tests/common/utils/storetest.py
+++ b/tests/functional-tests/common/utils/storetest.py
@@ -37,8 +37,9 @@ class CommonTrackerStoreTest (ut.TestCase):
#print "Starting the daemon in test mode"
self.system = TrackerSystemAbstraction ()
self.system.tracker_store_testing_start ()
- time.sleep (1)
+ time.sleep (0.5)
self.tracker = StoreHelper ()
+ self.tracker.wait () #Safe guard. Returns when the store is ready
@classmethod
def tearDownClass (self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]