[tracker/sam/functional-test-fixes: 23/28] functional-tests/310-miner-fs: Wait for extraction before starting test



commit ab557789068a12fc09015603fb166067284660ed
Author: Sam Thursfield <sam afuera me uk>
Date:   Sat Aug 2 02:54:37 2014 +0100

    functional-tests/310-miner-fs: Wait for extraction before starting test
    
    Extraction happens *after* the resource is inserted, and search queries
    won't work until it's been done.
    
    This fixes all but 3 of the tests in this module.

 tests/functional-tests/310-fts-indexing.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/functional-tests/310-fts-indexing.py b/tests/functional-tests/310-fts-indexing.py
index 90e0c7d..33e2adf 100755
--- a/tests/functional-tests/310-fts-indexing.py
+++ b/tests/functional-tests/310-fts-indexing.py
@@ -59,7 +59,8 @@ class CommonMinerFTS (CommonTrackerMinerTest):
         f.write (text)
         f.close ()
         self.tracker.await_resource_inserted (rdf_class = 'nfo:Document',
-                                              url = uri (self.testfile))
+                                              url = uri (self.testfile),
+                                              required_property = 'nie:plainTextContent')
         self.tracker.reset_graph_updates_tracking ()
 
     def search_word (self, word):


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