diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-23 12:37:06 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-06-23 14:05:56 +0000 |
commit | e4462af919fdffad073d24136e76c9902d79d3ca (patch) | |
tree | f7d6af64689c6e4637883ea1b683f5f656ed90d4 /auto_tests | |
parent | 9853f4a535d4fd9dd89bdb5197f03f3b65da461b (diff) |
Add assertions to bootstrap tests for correct connection type.
Diffstat (limited to 'auto_tests')
-rw-r--r-- | auto_tests/bootstrap_test.c | 1 | ||||
-rw-r--r-- | auto_tests/tcp_relay_test.c | 1 |
2 files changed, 2 insertions, 0 deletions
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) | |||
29 | c_sleep(ITERATION_INTERVAL); | 29 | c_sleep(ITERATION_INTERVAL); |
30 | } | 30 | } |
31 | 31 | ||
32 | assert(tox_self_get_connection_status(tox_udp) == TOX_CONNECTION_UDP); | ||
32 | printf("Connection (UDP): %d\n", tox_self_get_connection_status(tox_udp)); | 33 | printf("Connection (UDP): %d\n", tox_self_get_connection_status(tox_udp)); |
33 | 34 | ||
34 | tox_kill(tox_udp); | 35 | 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) | |||
33 | c_sleep(ITERATION_INTERVAL); | 33 | c_sleep(ITERATION_INTERVAL); |
34 | } | 34 | } |
35 | 35 | ||
36 | assert(tox_self_get_connection_status(tox_tcp) == TOX_CONNECTION_TCP); | ||
36 | printf("Connection (TCP): %d\n", tox_self_get_connection_status(tox_tcp)); | 37 | printf("Connection (TCP): %d\n", tox_self_get_connection_status(tox_tcp)); |
37 | 38 | ||
38 | tox_kill(tox_tcp); | 39 | tox_kill(tox_tcp); |