summaryrefslogtreecommitdiff
path: root/auto_tests/conference_test.c
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-11-15 20:11:40 +0300
committerDiadlo <polsha3@gmail.com>2017-11-15 21:36:22 +0300
commit4d94a07d255a6af2d3453ac9913a571fee94ee56 (patch)
treee431a6c870d617c87e98ecc20f84aa954f98642b /auto_tests/conference_test.c
parentdd50da48f3ab3fb1487b0cc8d6bc132c2adb645c (diff)
Add workaround for conference test
Diffstat (limited to 'auto_tests/conference_test.c')
-rw-r--r--auto_tests/conference_test.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/auto_tests/conference_test.c b/auto_tests/conference_test.c
index e8d7e238..b99b9af7 100644
--- a/auto_tests/conference_test.c
+++ b/auto_tests/conference_test.c
@@ -89,16 +89,21 @@ group_test_restart:
89 uint32_t to_comp = 234212; 89 uint32_t to_comp = 234212;
90 int test_run = 0; 90 int test_run = 0;
91 long long unsigned int cur_time = time(NULL); 91 long long unsigned int cur_time = time(NULL);
92 struct Tox_Options *opts = tox_options_new(NULL);
93 /* FIXME: Currenly here is problems with IPv6 */
94 tox_options_set_ipv6_enabled(opts, false);
92 95
93 for (i = 0; i < NUM_GROUP_TOX; ++i) { 96 for (i = 0; i < NUM_GROUP_TOX; ++i) {
94 tox_index[i] = i + 1; 97 tox_index[i] = i + 1;
95 toxes[i] = tox_new_log(0, 0, &tox_index[i]); 98 toxes[i] = tox_new_log(opts, 0, &tox_index[i]);
96 99
97 ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i); 100 ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i);
98 tox_callback_friend_request(toxes[i], &g_accept_friend_request); 101 tox_callback_friend_request(toxes[i], &g_accept_friend_request);
99 tox_callback_conference_invite(toxes[i], &print_group_invite_callback); 102 tox_callback_conference_invite(toxes[i], &print_group_invite_callback);
100 } 103 }
101 104
105 tox_options_free(opts);
106
102 { 107 {
103 TOX_ERR_GET_PORT error; 108 TOX_ERR_GET_PORT error;
104 ck_assert_msg(tox_self_get_udp_port(toxes[0], &error) == 33445, "First Tox instance did not bind to udp port 33445.\n"); 109 ck_assert_msg(tox_self_get_udp_port(toxes[0], &error) == 33445, "First Tox instance did not bind to udp port 33445.\n");