]> git.meshlink.io Git - meshlink/commitdiff
Update the invite-join test to update the canonical address after a port change.
authorGuus Sliepen <guus@meshlink.io>
Mon, 7 Sep 2020 19:10:22 +0000 (21:10 +0200)
committerGuus Sliepen <guus@meshlink.io>
Mon, 7 Sep 2020 19:10:22 +0000 (21:10 +0200)
test/invite-join.c

index cb592145234f5bde0a3847285ee8c0d8913ba82b..5bd5d415044e4ceb9a79a748ebe6abc9f806f676 100644 (file)
@@ -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);