summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2018-08-28 10:47:39 +0200
committerCarlos Garnacho <carlosg@gnome.org>2018-08-30 00:34:07 +0200
commite7f0ca85099ee72bc4ef02ff401bb28b5cdfc958 (patch)
treeeaeb72b15c5fd53c96769928a7e63619d0dba11e
parent47445ff0cc5d41ea917b576dd47abe674a735a5a (diff)
downloadtracker-e7f0ca85099ee72bc4ef02ff401bb28b5cdfc958.tar.gz
tests: Ignore previous events from monitor test setup
Similar to commit ff1f66a4d46. The move..._after_file_update test has the same issue than the move..._after_file_create, so let's forget those first events.
-rw-r--r--tests/libtracker-miner/tracker-monitor-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libtracker-miner/tracker-monitor-test.c b/tests/libtracker-miner/tracker-monitor-test.c
index 89f29b244..36bb20a2d 100644
--- a/tests/libtracker-miner/tracker-monitor-test.c
+++ b/tests/libtracker-miner/tracker-monitor-test.c
@@ -1123,6 +1123,10 @@ test_monitor_directory_event_moved_to_monitored_after_file_update (TrackerMonito
/* Set to monitor the new dir also */
g_assert_cmpint (tracker_monitor_add (fixture->monitor, source_dir), ==, TRUE);
+ /* Ignore the events thus far */
+ events_wait (fixture);
+ g_hash_table_remove_all (fixture->events);
+
/* Get final path of the file */
file_in_dest_dir_path = g_build_path (G_DIR_SEPARATOR_S,
fixture->monitored_directory,