Skip to content

Commit

Permalink
Add assertions to bootstrap tests for correct connection type.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Jun 23, 2018
1 parent 9853f4a commit e4462af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions auto_tests/bootstrap_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions auto_tests/tcp_relay_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e4462af

Please sign in to comment.