From 77af15ef03a9777a43fc14aedd566655b1547441 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 7 Sep 2020 21:10:22 +0200 Subject: [PATCH] Update the invite-join test to update the canonical address after a port change. --- test/invite-join.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/invite-join.c b/test/invite-join.c index cb592145..5bd5d415 100644 --- a/test/invite-join.c +++ b/test/invite-join.c @@ -160,6 +160,8 @@ int main(void) { int newport = meshlink_get_port(mesh1); assert(oldport != newport); + assert(meshlink_set_canonical_address(mesh1, meshlink_get_self(mesh1), "localhost", NULL)); + assert(meshlink_start(mesh1)); quux_url = meshlink_invite(mesh1, NULL, "quux"); assert(quux_url); -- 2.39.2