summaryrefslogtreecommitdiff
path: root/tests/functional-tests
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2016-07-13 16:40:02 +0100
committerSam Thursfield <sam@afuera.me.uk>2016-07-13 16:41:50 +0100
commit303f89e64b690d187cd1b2c91fe60851c6c975dc (patch)
tree5bad7a9912ebded6120b69e4b9c15791f4d51315 /tests/functional-tests
parentda1defb9ff68ac13d6e2abe2b516a8cd5b85cc2f (diff)
downloadtracker-303f89e64b690d187cd1b2c91fe60851c6c975dc.tar.gz
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.
Diffstat (limited to 'tests/functional-tests')
-rw-r--r--tests/functional-tests/common/utils/helpers.py5
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 c846138b6..70099c69b 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: