From e4e7766e2f0baa9d69de61993200680afa914616 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 21 Jul 2018 17:26:24 +0200 Subject: 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 fd8264467..1bdc16085 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 }, -- cgit v1.2.1