[tracker-miners/sam/test-runner-fix: 14/19] functional-tests: Fix invalid await_resource_deletion() call



commit 1d17e63d370e65d0f5632a66855ee853adc33a62
Author: Sam Thursfield <sam afuera me uk>
Date:   Fri Jan 4 21:10:08 2019 +0100

    functional-tests: Fix invalid await_resource_deletion() call
    
    The nie:InformationElement doesn't have tracker:notify set, so we'll
    never get a notification. We can expect that it's gone once the
    corresponding nfo:Document resource is gone.
    
    The 301-miner-resource-deletion test now passes.

 tests/functional-tests/301-miner-resource-removal.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/functional-tests/301-miner-resource-removal.py 
b/tests/functional-tests/301-miner-resource-removal.py
index a99042ad8..e1e531f92 100755
--- a/tests/functional-tests/301-miner-resource-removal.py
+++ b/tests/functional-tests/301-miner-resource-removal.py
@@ -77,12 +77,12 @@ class MinerResourceRemovalTest (CommonTrackerMinerTest):
         os.unlink (self.path ("test-monitored/test_1.txt"))
 
         self.tracker.await_resource_deleted (NFO_DOCUMENT, file_1_id)
-        self.tracker.await_resource_deleted (NFO_DOCUMENT, ie_1_id,
-                                             "Associated logical resource failed to be deleted " \
-                                             "when its containing file was removed.")
 
         self.assertResourceMissing (file_1_urn)
+        # Ensure the logical resource is deleted when the relevant file is
+        # removed.
         self.assertResourceMissing (ie_1_urn)
+
         self.assertResourceExists (file_2_urn)
         self.assertResourceExists (ie_2_urn)
 


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