diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-10-13 15:55:25 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-10-13 15:55:25 +0800 |
commit | 8482b83e11f1c925e1d8dc4d679195381e2737ee (patch) | |
tree | d2f5a465ad15e91208d16f5d629ef7b1df2e06eb /tests/check-empathy-chatroom.c | |
parent | 1c75beb71a9b52283f2cc7dcfeddadccb36f6338 (diff) | |
download | gsoc2013-empathy-8482b83e11f1c925e1d8dc4d679195381e2737ee.tar gsoc2013-empathy-8482b83e11f1c925e1d8dc4d679195381e2737ee.tar.gz gsoc2013-empathy-8482b83e11f1c925e1d8dc4d679195381e2737ee.tar.bz2 gsoc2013-empathy-8482b83e11f1c925e1d8dc4d679195381e2737ee.tar.lz gsoc2013-empathy-8482b83e11f1c925e1d8dc4d679195381e2737ee.tar.xz gsoc2013-empathy-8482b83e11f1c925e1d8dc4d679195381e2737ee.tar.zst gsoc2013-empathy-8482b83e11f1c925e1d8dc4d679195381e2737ee.zip |
reuse test account instead of creating one at each test to avoid to pollute gconf DB with loooooot of unremovable accounts
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1573 4ee84921-47dd-4033-b63a-18d7a039a3e4
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 |