From a5b71e4c8661ca3949933ae78025f37fd6480326 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 4 Jul 2015 22:43:05 -0400 Subject: [PATCH] Test fix. --- auto_tests/TCP_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) ck_assert_msg(tcp_data_callback_called, "could not recv packet."); ck_assert_msg(tcp_connection_to_online_tcp_relays(tc_1, 0) == 1, "Wrong number of connected relays"); ck_assert_msg(kill_tcp_connection_to(tc_1, 0) == 0, "could not kill connection to\n"); + + c_sleep(50); + do_TCP_server(tcp_s); + c_sleep(50); + do_tcp_connections(tc_1); + do_tcp_connections(tc_2); + + ck_assert_msg(send_packet_tcp_connection(tc_1, 0, "Gentoo", 6) == -1, "could send packet."); ck_assert_msg(kill_tcp_connection_to(tc_2, 0) == 0, "could not kill connection to\n"); kill_TCP_server(tcp_s);