summaryrefslogtreecommitdiff
path: root/auto_tests/tcp_relay_test.c
diff options
context:
space:
mode:
authorRobin Linden <dev@robinlinden.eu>2020-04-13 22:37:31 +0200
committerRobin Linden <dev@robinlinden.eu>2020-04-13 22:43:51 +0200
commit7f9f8045cd6f8d92559cdc9f7d297cf92e960e49 (patch)
treeb933b84586350a6e070a6d8a135690d70e36ddef /auto_tests/tcp_relay_test.c
parentb816c6f8e3ced0f65f3f749e9e6ecb0edd313628 (diff)
Fix things not being initialized if creating a TCP-only network
Diffstat (limited to 'auto_tests/tcp_relay_test.c')
-rw-r--r--auto_tests/tcp_relay_test.c7
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