summaryrefslogtreecommitdiff
path: root/auto_tests/tox_one_test.c
diff options
context:
space:
mode:
authorRobin Lindén <dev@robinlinden.eu>2018-02-18 23:10:59 +0100
committeriphydf <iphydf@users.noreply.github.com>2018-02-18 23:59:22 +0000
commitec8b911d7cc8b089a9a7b462748d752a2243cc35 (patch)
tree6d2a93823bf70393d9f709fa86fa20f15b306594 /auto_tests/tox_one_test.c
parent9d58e0aa0a846328acadfe4b5f3802a4746a4967 (diff)
Increase range of ports available to Toxes during tests
Diffstat (limited to 'auto_tests/tox_one_test.c')
-rw-r--r--auto_tests/tox_one_test.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/auto_tests/tox_one_test.c b/auto_tests/tox_one_test.c
index 750ba2fd..4ac30326 100644
--- a/auto_tests/tox_one_test.c
+++ b/auto_tests/tox_one_test.c
@@ -125,14 +125,6 @@ START_TEST(test_one)
125 tox_self_get_public_key(tox2, pk); 125 tox_self_get_public_key(tox2, pk);
126 ck_assert_msg(memcmp(pk, address, TOX_PUBLIC_KEY_SIZE) == 0, "Wrong public key."); 126 ck_assert_msg(memcmp(pk, address, TOX_PUBLIC_KEY_SIZE) == 0, "Wrong public key.");
127 127
128 {
129 TOX_ERR_GET_PORT error;
130 uint16_t port = tox_self_get_udp_port(tox1, &error);
131 ck_assert_msg(33445 <= port && port <= 33545,
132 "First Tox instance did not bind to udp port inside [33445, 33545].\n");
133 ck_assert_msg(error == TOX_ERR_GET_PORT_OK, "wrong error");
134 }
135
136 tox_options_free(options); 128 tox_options_free(options);
137 tox_kill(tox1); 129 tox_kill(tox1);
138 tox_kill(tox2); 130 tox_kill(tox2);