about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-06 18:37:55 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-06 18:40:51 +0200
commit1d23d6461dfe920e96af11a5e6395756c2b7d2c6 (patch)
treeadd080c1533cc50efad425122e6d97ee0de2c59b /tests
parent5349b603858c3cd15df405e6ee419d4e6e35f623 (diff)
downloadprofani-tty-1d23d6461dfe920e96af11a5e6395756c2b7d2c6.tar.gz
Remove not needed strdupin test_cmd_rooms
Regards https://github.com/profanity-im/profanity/issues/1019
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_cmd_rooms.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittests/test_cmd_rooms.c b/tests/unittests/test_cmd_rooms.c
index 102941b9..4f3e3c42 100644
--- a/tests/unittests/test_cmd_rooms.c
+++ b/tests/unittests/test_cmd_rooms.c
@@ -46,7 +46,7 @@ void cmd_rooms_uses_account_default_when_no_arg(void **state)
     gchar *args[] = { NULL };
 
     ProfAccount *account = account_new("testaccount", NULL, NULL, NULL, TRUE, NULL, 0, NULL, NULL, NULL,
-        0, 0, 0, 0, 0, strdup("default_conf_server"), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+        0, 0, 0, 0, 0, "default_conf_server", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
 
     will_return(connection_get_status, JABBER_CONNECTED);
     will_return(session_get_account_name, "account_name");
@@ -83,8 +83,9 @@ void cmd_rooms_filter_arg_used_when_passed(void **state)
 {
     gchar *args[] = { "filter", "text", NULL };
 
+
     ProfAccount *account = account_new("testaccount", NULL, NULL, NULL, TRUE, NULL, 0, NULL, NULL, NULL,
-        0, 0, 0, 0, 0, strdup("default_conf_server"), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+        0, 0, 0, 0, 0, "default_conf_server", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
 
     will_return(connection_get_status, JABBER_CONNECTED);
     will_return(session_get_account_name, "account_name");