[tracker/sam/functional-test-fixes: 13/20] fixup! functional-tests: Improve the wait-for-change code in helpers.StoreHelper
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/functional-test-fixes: 13/20] fixup! functional-tests: Improve the wait-for-change code in helpers.StoreHelper
- Date: Sun, 20 Jul 2014 16:21:34 +0000 (UTC)
commit 408874c7cf4669172e42edd0162ceb6cc981b9b9
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Jul 20 15:25:51 2014 +0100
fixup! functional-tests: Improve the wait-for-change code in helpers.StoreHelper
tests/functional-tests/common/utils/helpers.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/helpers.py b/tests/functional-tests/common/utils/helpers.py
index 1d0f951..ce7045f 100644
--- a/tests/functional-tests/common/utils/helpers.py
+++ b/tests/functional-tests/common/utils/helpers.py
@@ -251,6 +251,8 @@ class StoreHelper (Helper):
"""
Process notifications from tracker-store on resource changes.
"""
+ exit_loop = False
+
if inserts_list is not None:
if self.inserts_match_function is not None:
# The match function will remove matched entries from the list
@@ -262,10 +264,10 @@ class StoreHelper (Helper):
(exit_loop, deletes_list) = self.deletes_match_function (deletes_list)
self.deletes_list += deletes_list
- if exit_loop:
- GLib.source_remove(self.graph_updated_timeout_id)
- self.graph_updated_timeout_id = 0
- self.loop.quit ()
+ if exit_loop:
+ GLib.source_remove(self.graph_updated_timeout_id)
+ self.graph_updated_timeout_id = 0
+ self.loop.quit ()
def _enable_await_timeout (self):
self.graph_updated_timeout_id = GLib.timeout_add_seconds (REASONABLE_TIMEOUT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]