[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 69/116] tests: Adapt TrackerFileNotifier tests to internal behavioral change



commit 42d3785f5535728fe5f4fb6f90d3010283bd348e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Jul 21 17:26:24 2018 +0200

    tests: Adapt TrackerFileNotifier tests to internal behavioral change
    
    Before commit 68381c1dd, ensure_parents() would stop before the indexing
    root in the assumption that it was already notified upon, that commit made
    it so those folders are ensured to be notified too.
    
    This internal behavioral change is normally evened out by TrackerMinerFS,
    but shows at the tests for the internal TrackerFileNotifier object as
    there is nothing there to set the IRI for those files.

 tests/libtracker-miner/tracker-file-notifier-test.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c 
b/tests/libtracker-miner/tracker-file-notifier-test.c
index 32d42876a..dd50580a9 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -668,6 +668,7 @@ test_file_notifier_monitor_updates_non_recursive (TestCommonContext *fixture,
                { OPERATION_CREATE, "non-recursive/bbb", NULL }
        };
        FilesystemOperation expected_results2[] = {
+               { OPERATION_CREATE, "non-recursive", NULL },
                { OPERATION_UPDATE, "non-recursive/bbb", NULL },
                { OPERATION_CREATE, "non-recursive/ccc", NULL },
                { OPERATION_UPDATE, "non-recursive/ccc", NULL }
@@ -716,6 +717,7 @@ test_file_notifier_monitor_updates_recursive (TestCommonContext *fixture,
                { OPERATION_CREATE, "recursive/bbb", NULL }
        };
        FilesystemOperation expected_results2[] = {
+               { OPERATION_CREATE, "recursive", NULL },
                { OPERATION_CREATE, "recursive/folder", NULL },
                { OPERATION_CREATE, "recursive/folder/aaa", NULL },
                { OPERATION_UPDATE, "recursive/bbb", NULL },


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