diff options
Diffstat (limited to 'auto_tests/tcp_relay_test.c')
-rw-r--r-- | auto_tests/tcp_relay_test.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/auto_tests/tcp_relay_test.c b/auto_tests/tcp_relay_test.c index b9eea92d..fcb1fdef 100644 --- a/auto_tests/tcp_relay_test.c +++ b/auto_tests/tcp_relay_test.c | |||
@@ -24,7 +24,12 @@ int main(void) | |||
24 | tox_options_free(opts); | 24 | tox_options_free(opts); |
25 | 25 | ||
26 | tox_bootstrap(tox_tcp, "tox.initramfs.io", 33445, key, nullptr); | 26 | tox_bootstrap(tox_tcp, "tox.initramfs.io", 33445, key, nullptr); |
27 | tox_add_tcp_relay(tox_tcp, "tox.initramfs.io", 33445, key, nullptr); | 27 | |
28 | Tox_Err_Bootstrap tcp_err; | ||
29 | tox_add_tcp_relay(tox_tcp, "tox.initramfs.io", 33445, key, &tcp_err); | ||
30 | ck_assert_msg(tcp_err == TOX_ERR_BOOTSTRAP_OK, | ||
31 | "attempting to add tcp relay returned with an error: %d", | ||
32 | tcp_err); | ||
28 | 33 | ||
29 | printf("Waiting for connection"); | 34 | printf("Waiting for connection"); |
30 | 35 | ||