diff options
Diffstat (limited to 'auto_tests/tox_test.c')
-rw-r--r-- | auto_tests/tox_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c index f765fcd3..04dd3c22 100644 --- a/auto_tests/tox_test.c +++ b/auto_tests/tox_test.c | |||
@@ -124,9 +124,9 @@ void write_file(Tox *m, int friendnumber, uint8_t filenumber, const uint8_t *dat | |||
124 | START_TEST(test_few_clients) | 124 | START_TEST(test_few_clients) |
125 | { | 125 | { |
126 | long long unsigned int con_time, cur_time = time(NULL); | 126 | long long unsigned int con_time, cur_time = time(NULL); |
127 | Tox *tox1 = tox_new(TOX_ENABLE_IPV6_DEFAULT); | 127 | Tox *tox1 = tox_new(0); |
128 | Tox *tox2 = tox_new(TOX_ENABLE_IPV6_DEFAULT); | 128 | Tox *tox2 = tox_new(0); |
129 | Tox *tox3 = tox_new(TOX_ENABLE_IPV6_DEFAULT); | 129 | Tox *tox3 = tox_new(0); |
130 | ck_assert_msg(tox1 || tox2 || tox3, "Failed to create 3 tox instances"); | 130 | ck_assert_msg(tox1 || tox2 || tox3, "Failed to create 3 tox instances"); |
131 | uint32_t to_compare = 974536; | 131 | uint32_t to_compare = 974536; |
132 | tox_callback_friend_request(tox2, accept_friend_request, &to_compare); | 132 | tox_callback_friend_request(tox2, accept_friend_request, &to_compare); |
@@ -302,7 +302,7 @@ START_TEST(test_many_clients) | |||
302 | uint32_t to_comp = 974536; | 302 | uint32_t to_comp = 974536; |
303 | 303 | ||
304 | for (i = 0; i < NUM_TOXES; ++i) { | 304 | for (i = 0; i < NUM_TOXES; ++i) { |
305 | toxes[i] = tox_new(TOX_ENABLE_IPV6_DEFAULT); | 305 | toxes[i] = tox_new(0); |
306 | ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i); | 306 | ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i); |
307 | tox_callback_friend_request(toxes[i], accept_friend_request, &to_comp); | 307 | tox_callback_friend_request(toxes[i], accept_friend_request, &to_comp); |
308 | } | 308 | } |