diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-10-20 01:17:01 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-11-14 22:45:26 +0100 |
commit | 33ea86a5dc69c45d2cdcc826247d453e4d332ba1 (patch) | |
tree | 5d75e62484e177deac3c8d36753d258fef766c85 | |
parent | 9f749b1a586c15f8968990795a831e75fef0616d (diff) | |
download | tracker-33ea86a5dc69c45d2cdcc826247d453e4d332ba1.tar.gz |
tests: Minor update to TrackerMonitor test
Due to how the file is created, we shall get an additional UPDATED
event that TrackerMonitor doesn't merge together anymore. This is
now merged together in the upper layers, so just acknowledge the
extra event in this test.
-rw-r--r-- | tests/libtracker-miner/tracker-monitor-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtracker-miner/tracker-monitor-test.c b/tests/libtracker-miner/tracker-monitor-test.c index f0a6da841..828ce7cbb 100644 --- a/tests/libtracker-miner/tracker-monitor-test.c +++ b/tests/libtracker-miner/tracker-monitor-test.c @@ -427,8 +427,8 @@ test_monitor_file_event_created (TrackerMonitorTestFixture *fixture, g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_MOVED_TO), ==, 0); g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_DELETED), ==, 0); - /* A single CREATED event should now never trigger an UPDATED event */ - g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_UPDATED), ==, 0); + /* We may get an UPDATE due to the way the file is created */ + g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_UPDATED), >, 0); g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_ATTRIBUTE_UPDATED), ==, 0); /* Cleanup environment */ |