diff options
-rw-r--r-- | tests/libtracker-miner/tracker-monitor-test.c | 4 |
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 828ce7cbb..89f29b244 100644 --- a/tests/libtracker-miner/tracker-monitor-test.c +++ b/tests/libtracker-miner/tracker-monitor-test.c @@ -1001,6 +1001,10 @@ test_monitor_directory_event_moved_to_monitored_after_file_create (TrackerMonito /* Add some file to the new dir, WHILE ALREADY MONITORING */ set_file_contents (source_path, "lalala.txt", "whatever", &file_in_source_dir); + /* 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, |