[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 71/116] tests: Ignore previous events from monitor test setup
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/shuffle-libtracker-miner: 71/116] tests: Ignore previous events from monitor test setup
- Date: Thu, 12 Dec 2019 12:12:28 +0000 (UTC)
commit dce0f664c537056467a4565f65e98692e0e18b2d
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Aug 28 10:47:39 2018 +0200
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]