diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-01-04 16:43:58 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-01-04 16:43:58 +0100 |
commit | 3b7b868bb11faf74c872ecf606c4eef189e31725 (patch) | |
tree | f3158e3f90d8a423df9761c58d44a0d1468ccda6 | |
parent | c7cd49f8d7e83302c0f21f4449cddac528d28eea (diff) | |
download | irssi-3b7b868bb11faf74c872ecf606c4eef189e31725.zip |
finish test case
-rw-r--r-- | tests/irc/flood/test-796.c | 14 |
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"); } |