diff options
author | irungentoo <irungentoo@gmail.com> | 2015-07-04 22:43:05 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-07-04 22:43:05 -0400 |
commit | a5b71e4c8661ca3949933ae78025f37fd6480326 (patch) | |
tree | ff9fbd14fd42eaed99a808cd4371aabcd106e0ba | |
parent | c259250abb86a01ae7e3fc906380417427f38ca1 (diff) |
Test fix.
-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); |