mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Fixed tests
This commit is contained in:
parent
ab963499b5
commit
36790dc26b
@ -75,12 +75,14 @@ void close_preferences(void **state)
|
|||||||
|
|
||||||
void init_chat_sessions(void **state)
|
void init_chat_sessions(void **state)
|
||||||
{
|
{
|
||||||
|
load_preferences(NULL);
|
||||||
chat_sessions_init();
|
chat_sessions_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void close_chat_sessions(void **state)
|
void close_chat_sessions(void **state)
|
||||||
{
|
{
|
||||||
chat_sessions_clear();
|
chat_sessions_clear();
|
||||||
|
close_preferences(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GCompareFunc cmp_func;
|
static GCompareFunc cmp_func;
|
||||||
|
@ -120,9 +120,6 @@ void handle_message_error_when_recipient_cancel(void **state)
|
|||||||
prefs_set_boolean(PREF_STATES, FALSE);
|
prefs_set_boolean(PREF_STATES, FALSE);
|
||||||
chat_sessions_init();
|
chat_sessions_init();
|
||||||
|
|
||||||
expect_string(ui_handle_recipient_not_found, recipient, from);
|
|
||||||
expect_string(ui_handle_recipient_not_found, err_msg, err_msg);
|
|
||||||
|
|
||||||
handle_message_error(from, type, err_msg);
|
handle_message_error(from, type, err_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,9 +134,6 @@ void handle_message_error_when_recipient_cancel_disables_chat_session(void **sta
|
|||||||
chat_sessions_init();
|
chat_sessions_init();
|
||||||
chat_session_on_incoming_message(from, resource, 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);
|
handle_message_error(from, type, err_msg);
|
||||||
gboolean session_exists = chat_session_exists(from);
|
gboolean session_exists = chat_session_exists(from);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user