[tracker-miners/wip/carlosg/test] tests: Make async IndexLocation call



commit 7356700d0a6023c0d5d1b6a8c344c163cf556b5a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 23 14:39:46 2020 +0200

    tests: Make async IndexLocation call

 tests/functional-tests/minerhelper.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/functional-tests/minerhelper.py b/tests/functional-tests/minerhelper.py
index 4d2a5c495..fdab7f0ea 100644
--- a/tests/functional-tests/minerhelper.py
+++ b/tests/functional-tests/minerhelper.py
@@ -140,4 +140,6 @@ 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():
+            return
+        return 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]