diff options
Diffstat (limited to 'tests/test_server_events.c')
-rw-r--r-- | tests/test_server_events.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_server_events.c b/tests/test_server_events.c index 435493a2..0b5cfd09 100644 --- a/tests/test_server_events.c +++ b/tests/test_server_events.c @@ -130,19 +130,20 @@ void handle_message_error_when_recipient_cancel_disables_chat_session(void **sta { char *err_msg = "Some error."; char *from = "bob@server.com"; + char *resource = "resource"; char *type = "cancel"; prefs_set_boolean(PREF_STATES, TRUE); chat_sessions_init(); - chat_session_on_incoming_message(from, TRUE); + chat_session_on_incoming_message(from, resource, TRUE); expect_any(ui_handle_recipient_not_found, recipient); expect_any(ui_handle_recipient_not_found, err_msg); handle_message_error(from, type, err_msg); - gboolean chat_session_supported = chat_session_on_message_send(from); + gboolean session_exists = chat_session_exists(from); - assert_false(chat_session_supported); + assert_false(session_exists); chat_sessions_clear(); } |