summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2018-01-04 16:43:58 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2018-01-04 16:43:58 +0100
commit3b7b868bb11faf74c872ecf606c4eef189e31725 (patch)
treef3158e3f90d8a423df9761c58d44a0d1468ccda6 /tests
parentc7cd49f8d7e83302c0f21f4449cddac528d28eea (diff)
downloadirssi-3b7b868bb11faf74c872ecf606c4eef189e31725.zip
finish test case
Diffstat (limited to 'tests')
-rw-r--r--tests/irc/flood/test-796.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/irc/flood/test-796.c b/tests/irc/flood/test-796.c
index 293e87d7..24a5d4be 100644
--- a/tests/irc/flood/test-796.c
+++ b/tests/irc/flood/test-796.c
@@ -110,6 +110,7 @@ static void test_server_destroy_flood(ServerDestroyFloodData *fixture, const voi
server = proto->server_init_connect(conn);
server->session_reconnect = TRUE;
server->tag = g_strdup("testserver");
+ server_ref(server);
g_test_message("created server: %p", server);
@@ -118,7 +119,8 @@ static void test_server_destroy_flood(ServerDestroyFloodData *fixture, const voi
irc_session_deinit();
irc_irc_deinit();
- signal_emit("server connected", 1, server);
+
+ server_connect_finished(server);
/* make up for the skipped session init */
irc_server_init_bare_minimum(IRC_SERVER(server));
@@ -130,6 +132,16 @@ static void test_server_destroy_flood(ServerDestroyFloodData *fixture, const voi
/* simulate failing irc_server_send_data() */
server->connection_lost = TRUE;
+ /*
+ chat_completion_deinit();
+ fe_messages_deinit();
+ irc_notifylist_deinit();
+ */
+
+ /* for the purpose of this exercise, we are ignoring the
+ errors of g_hash_table_lookup failure */
+ g_log_set_always_fatal(G_LOG_FATAL_MASK);
+
signal_emit("event privmsg", 4, server, "#someroom :test message", "nick", "user@host");
}