Commit dbc3445c authored by Carlos Garnacho's avatar Carlos Garnacho

tests: Fix TrackerFileNotifier tests teardown

Be a little bit more polite and delete the folder after closing the
connection. Prevents warnings (and test failures) on its finalize
paths.
parent 7d279178
...@@ -306,8 +306,6 @@ static void ...@@ -306,8 +306,6 @@ static void
test_common_context_teardown (TestCommonContext *fixture, test_common_context_teardown (TestCommonContext *fixture,
gconstpointer data) gconstpointer data)
{ {
DELETE_FOLDER (fixture, NULL);
g_list_foreach (fixture->ops, (GFunc) filesystem_operation_free, NULL); g_list_foreach (fixture->ops, (GFunc) filesystem_operation_free, NULL);
g_list_free (fixture->ops); g_list_free (fixture->ops);
...@@ -328,6 +326,8 @@ test_common_context_teardown (TestCommonContext *fixture, ...@@ -328,6 +326,8 @@ test_common_context_teardown (TestCommonContext *fixture,
} }
g_clear_object (&fixture->connection); g_clear_object (&fixture->connection);
DELETE_FOLDER (fixture, NULL);
} }
static gboolean static gboolean
......
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