diff options
-rw-r--r-- | auto_tests/TCP_test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/auto_tests/TCP_test.c b/auto_tests/TCP_test.c index ba285971..01fcc09d 100644 --- a/auto_tests/TCP_test.c +++ b/auto_tests/TCP_test.c | |||
@@ -598,6 +598,14 @@ START_TEST(test_tcp_connection) | |||
598 | ck_assert_msg(tcp_data_callback_called, "could not recv packet."); | 598 | ck_assert_msg(tcp_data_callback_called, "could not recv packet."); |
599 | ck_assert_msg(tcp_connection_to_online_tcp_relays(tc_1, 0) == 1, "Wrong number of connected relays"); | 599 | ck_assert_msg(tcp_connection_to_online_tcp_relays(tc_1, 0) == 1, "Wrong number of connected relays"); |
600 | ck_assert_msg(kill_tcp_connection_to(tc_1, 0) == 0, "could not kill connection to\n"); | 600 | ck_assert_msg(kill_tcp_connection_to(tc_1, 0) == 0, "could not kill connection to\n"); |
601 | |||
602 | c_sleep(50); | ||
603 | do_TCP_server(tcp_s); | ||
604 | c_sleep(50); | ||
605 | do_tcp_connections(tc_1); | ||
606 | do_tcp_connections(tc_2); | ||
607 | |||
608 | ck_assert_msg(send_packet_tcp_connection(tc_1, 0, "Gentoo", 6) == -1, "could send packet."); | ||
601 | ck_assert_msg(kill_tcp_connection_to(tc_2, 0) == 0, "could not kill connection to\n"); | 609 | ck_assert_msg(kill_tcp_connection_to(tc_2, 0) == 0, "could not kill connection to\n"); |
602 | 610 | ||
603 | kill_TCP_server(tcp_s); | 611 | kill_TCP_server(tcp_s); |