about summary refs log tree commit diff stats
path: root/tests/test_server_events.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-05 23:42:32 +0000
committerJames Booth <boothj5@gmail.com>2015-01-05 23:42:32 +0000
commit15bb6fb68f34302dc3b029ab048a9a78dc0733a5 (patch)
tree840b62ff3d98bee577a2a58011385615ac05c90b /tests/test_server_events.c
parent9cb0d52e7df9c829c256b62ad2cd365a66e39446 (diff)
downloadprofani-tty-15bb6fb68f34302dc3b029ab048a9a78dc0733a5.tar.gz
Fixed chat sessions test
Diffstat (limited to 'tests/test_server_events.c')
-rw-r--r--tests/test_server_events.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_server_events.c b/tests/test_server_events.c
index db74e8f3..0b5cfd09 100644
--- a/tests/test_server_events.c
+++ b/tests/test_server_events.c
@@ -141,10 +141,9 @@ void handle_message_error_when_recipient_cancel_disables_chat_session(void **sta
     expect_any(ui_handle_recipient_not_found, err_msg);
 
     handle_message_error(from, type, err_msg);
-    chat_session_on_message_send(from);
-    gboolean send_states = chat_session_send_states(from);
+    gboolean session_exists = chat_session_exists(from);
 
-    assert_false(send_states);
+    assert_false(session_exists);
     chat_sessions_clear();
 }