[tracker/wip/sam/meson] functional-tests: Fix bug in await_resource_inserted()



commit 2ac790869138f3922ff9e5c20e42f5e39c6682c7
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Jul 13 16:40:02 2016 +0100

    functional-tests: Fix bug in await_resource_inserted()
    
    As a performance optimisation, after the first GraphUpdated signal for a
    resource, subsequent changes to that resource would be ignored. This is
    actually dumb, because it means we ignore all the data added by the
    extractor in some cases.

 tests/functional-tests/common/utils/helpers.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/helpers.py b/tests/functional-tests/common/utils/helpers.py
index c846138..70099c6 100644
--- a/tests/functional-tests/common/utils/helpers.py
+++ b/tests/functional-tests/common/utils/helpers.py
@@ -314,7 +314,6 @@ class StoreHelper (Helper):
             required_property_id = self.get_resource_id_by_uri(required_property)
             log ("Required property %s id %i" % (required_property, required_property_id))
 
-        known_subjects = set ()
         def find_resource_insertion (inserts_list):
             matched_creation = (self.matched_resource_id is not None)
             matched_required_property = False
@@ -326,9 +325,7 @@ class StoreHelper (Helper):
             for insert in inserts_list:
                 id = insert[1]
 
-                if not matched_creation and id not in known_subjects:
-                    known_subjects.add (id)
-
+                if not matched_creation:
                     where = "  ?urn a %s " % rdf_class
 
                     if url is not None:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]