diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:55:25 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:55:25 +0800 |
commit | a5f068db869d99cd7b3423cc0110e2e69b6ec4f5 (patch) | |
tree | d2f5a465ad15e91208d16f5d629ef7b1df2e06eb /tests/check-empathy-chatroom.c | |
parent | 063c6dbfe2fb57ab251fcd51060e4e326a96105f (diff) | |
download | gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.gz gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.bz2 gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.lz gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.xz gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.zst gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.zip |
reuse test account instead of creating one at each test to avoid to pollute gconf DB with loooooot of unremovable accounts
svn path=/trunk/; revision=1573
Diffstat (limited to 'tests/check-empathy-chatroom.c')
-rw-r--r-- | tests/check-empathy-chatroom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/check-empathy-chatroom.c b/tests/check-empathy-chatroom.c index af8687cf3..a4adf6ce1 100644 --- a/tests/check-empathy-chatroom.c +++ b/tests/check-empathy-chatroom.c @@ -15,7 +15,7 @@ create_chatroom (void) McAccount *account; EmpathyChatroom *chatroom; - account = create_test_account (); + account = get_test_account (); chatroom = empathy_chatroom_new (account); fail_if (chatroom == NULL); @@ -36,7 +36,7 @@ START_TEST (test_empathy_chatroom_new) fail_if (auto_connect); fail_if (favorite); - destroy_test_account (empathy_chatroom_get_account (chatroom)); + g_object_unref (empathy_chatroom_get_account (chatroom)); g_object_unref (chatroom); } END_TEST @@ -109,7 +109,7 @@ START_TEST (test_favorite_and_auto_connect) fail_if (auto_connect); fail_if (favorite); - destroy_test_account (empathy_chatroom_get_account (chatroom)); + g_object_unref (empathy_chatroom_get_account (chatroom)); g_object_unref (chatroom); } END_TEST |