[tracker-miners/wip/carlog/test: 2/4] tests: Make async IndexLocation call




commit 420d4c11e5fcbebcad7eb6b509e9a3f8dfc8b271
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 23 16:02:06 2020 +0200

    tests: Make async IndexLocation call

 tests/functional-tests/minerhelper.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/tests/functional-tests/minerhelper.py b/tests/functional-tests/minerhelper.py
index 4d2a5c495..565d2b954 100644
--- a/tests/functional-tests/minerhelper.py
+++ b/tests/functional-tests/minerhelper.py
@@ -140,4 +140,8 @@ class MinerFsHelper ():
             GLib.source_remove(timeout_id)
 
     def index_location(self, uri, graphs=None, flags=None):
-        return self.index.IndexLocation('(sasas)', uri, graphs or [], flags or [])
+        def index_location_done(obj, res, data):
+            log.debug("Indexing location %s", uri)
+
+        log.debug("Requesting to index location %s", uri)
+        self.index.IndexLocation('(sasas)', uri, graphs or [], flags or [], 
result_handler=index_location_done)


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