Commit ff1f66a4 authored by Carlos Garnacho's avatar Carlos Garnacho

tests: Ignore previous monitor events from test setup

This specific TrackerMonitor test sometimes fails on an unexpected
sequence of monitor events. Give it time to handle all events after
the test is set up, those are not the purpose of the test, and handling
all them in one go sometimes results on another series of roughly
equivalent events.

Closes: #20
parent 130f0673
......@@ -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,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment