summaryrefslogtreecommitdiff
path: root/auto_tests/tox_many_test.c
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-08-25 09:30:40 +0300
committerDiadlo <polsha3@gmail.com>2017-11-20 16:53:19 +0300
commitc506d73d5de344afe97541974ffb3dc697818d49 (patch)
treea2003f4d1cf9f21f9202ca742a09113b8cbbff42 /auto_tests/tox_many_test.c
parent2651193b991f4b691aa978b079718606891c6d48 (diff)
Fix assert for the first port value
Port of the first tox instance will be 33445 only if this port was not in use during testing
Diffstat (limited to 'auto_tests/tox_many_test.c')
-rw-r--r--auto_tests/tox_many_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auto_tests/tox_many_test.c b/auto_tests/tox_many_test.c
index a34cfa8d..7ab0facc 100644
--- a/auto_tests/tox_many_test.c
+++ b/auto_tests/tox_many_test.c
@@ -50,7 +50,9 @@ START_TEST(test_many_clients)
50 50
51 { 51 {
52 TOX_ERR_GET_PORT error; 52 TOX_ERR_GET_PORT error;
53 ck_assert_msg(tox_self_get_udp_port(toxes[0], &error) == 33445, "First Tox instance did not bind to udp port 33445.\n"); 53 uint16_t port = tox_self_get_udp_port(toxes[0], &error);
54 ck_assert_msg(33445 <= port && port <= 33545,
55 "First Tox instance did not bind to udp port inside [33445, 33545].\n");
54 ck_assert_msg(error == TOX_ERR_GET_PORT_OK, "wrong error"); 56 ck_assert_msg(error == TOX_ERR_GET_PORT_OK, "wrong error");
55 } 57 }
56 58