From e7f0ca85099ee72bc4ef02ff401bb28b5cdfc958 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 28 Aug 2018 10:47:39 +0200 Subject: 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. --- tests/libtracker-miner/tracker-monitor-test.c | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit v1.2.1