From e4462af919fdffad073d24136e76c9902d79d3ca Mon Sep 17 00:00:00 2001 From: iphydf Date: Sat, 23 Jun 2018 12:37:06 +0000 Subject: [PATCH] Add assertions to bootstrap tests for correct connection type. --- auto_tests/bootstrap_test.c | 1 + auto_tests/tcp_relay_test.c | 1 + 2 files changed, 2 insertions(+) diff --git a/auto_tests/bootstrap_test.c b/auto_tests/bootstrap_test.c index fd46d09c..d6138855 100644 --- a/auto_tests/bootstrap_test.c +++ b/auto_tests/bootstrap_test.c @@ -29,6 +29,7 @@ int main(void) c_sleep(ITERATION_INTERVAL); } + assert(tox_self_get_connection_status(tox_udp) == TOX_CONNECTION_UDP); printf("Connection (UDP): %d\n", tox_self_get_connection_status(tox_udp)); tox_kill(tox_udp); diff --git a/auto_tests/tcp_relay_test.c b/auto_tests/tcp_relay_test.c index 84fb92da..d0c70934 100644 --- a/auto_tests/tcp_relay_test.c +++ b/auto_tests/tcp_relay_test.c @@ -33,6 +33,7 @@ int main(void) c_sleep(ITERATION_INTERVAL); } + assert(tox_self_get_connection_status(tox_tcp) == TOX_CONNECTION_TCP); printf("Connection (TCP): %d\n", tox_self_get_connection_status(tox_tcp)); tox_kill(tox_tcp);