[tracker-miners/wip/carlosg/tracker-3.0-api-breaks: 7/25] tests: Use new TrackerSparqlConnection constructors in tests



commit 80ec22c0714a52074b696cfef25e762fb68123ac
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 24 11:12:57 2019 +0100

    tests: Use new TrackerSparqlConnection constructors in tests
    
    local_new() is no more. We use tracker_sparql_connection_new().

 tests/libtracker-miner/tracker-file-notifier-test.c | 2 +-
 tests/libtracker-miner/tracker-miner-fs-test.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c 
b/tests/libtracker-miner/tracker-file-notifier-test.c
index bf953ec09..c3b036a20 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -273,7 +273,7 @@ test_common_context_setup (TestCommonContext *fixture,
 
        data_loc = g_file_get_child (fixture->test_file, ".data");
        ontology = g_file_new_for_path (TEST_ONTOLOGIES_DIR);
-       fixture->connection = tracker_sparql_connection_local_new (0, data_loc, data_loc, ontology, NULL, 
&error);
+       fixture->connection = tracker_sparql_connection_new (0, data_loc, ontology, NULL, &error);
        g_assert_no_error (error);
 
        fixture->ops = NULL;
diff --git a/tests/libtracker-miner/tracker-miner-fs-test.c b/tests/libtracker-miner/tracker-miner-fs-test.c
index 7ee8963f1..1741e6e16 100644
--- a/tests/libtracker-miner/tracker-miner-fs-test.c
+++ b/tests/libtracker-miner/tracker-miner-fs-test.c
@@ -270,7 +270,7 @@ fixture_setup (TrackerMinerFSTestFixture *fixture,
 
        file = g_file_get_child (fixture->test_root, ".db");
        ontology = g_file_new_for_path (TEST_ONTOLOGIES_DIR);
-       fixture->connection = tracker_sparql_connection_local_new (0, file, file, ontology, NULL, &error);
+       fixture->connection = tracker_sparql_connection_new (0, file, ontology, NULL, &error);
        g_assert_no_error (error);
        g_object_unref (file);
        g_object_unref (ontology);


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