Commit 1ae15f66 authored by Philip Withnall's avatar Philip Withnall

tests: Set candidate addresses in test-priority

This avoids an assertion failure in nice_address_to_string() when the
addresses are compared for priority.
Reviewed-by: default avatarOlivier Crête <olivier.crete@collabora.com>
Differential Revision: https://phabricator.freedesktop.org/D299
parent ea334802
......@@ -47,8 +47,11 @@ main (void)
{
NiceCandidate *candidate;
/* test 1 */
candidate = nice_candidate_new (NICE_CANDIDATE_TYPE_HOST);
nice_address_set_from_string (&candidate->addr, "127.0.0.1");
nice_address_set_from_string (&candidate->base_addr, "127.0.0.1");
/* test 1 */
g_assert (nice_candidate_jingle_priority (candidate) == 1000);
/* Host UDP */
candidate->transport = NICE_CANDIDATE_TRANSPORT_UDP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment