about summary refs log tree commit diff stats
path: root/tests/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers.c')
-rw-r--r--tests/helpers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/helpers.c b/tests/helpers.c
index bc0b8009..10310886 100644
--- a/tests/helpers.c
+++ b/tests/helpers.c
@@ -75,12 +75,14 @@ void close_preferences(void **state)
 
 void init_chat_sessions(void **state)
 {
+    load_preferences(NULL);
     chat_sessions_init();
 }
 
 void close_chat_sessions(void **state)
 {
     chat_sessions_clear();
+    close_preferences(NULL);
 }
 
 static GCompareFunc cmp_func;