about summary refs log tree commit diff stats
path: root/tests/helpers.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-06 21:56:14 +0000
committerJames Booth <boothj5@gmail.com>2015-01-06 21:56:14 +0000
commit36790dc26bbd4d00702a75469980e7c9fbf1282d (patch)
tree31540d01864e4002de9c2d878b321bf363850220 /tests/helpers.c
parentab963499b5437d9c45cc44dfc78c80347ef9cbe3 (diff)
downloadprofani-tty-36790dc26bbd4d00702a75469980e7c9fbf1282d.tar.gz
Fixed tests
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;