X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=test%2Fimport-export.c;h=5d37146fd09502d8711f70a592033124462c8879;hp=392f1dac18753eebfea70db506c591a48801e464;hb=3febbb4453f5c6b0286e7e3c68a5dbcec975b6fd;hpb=781514e1c7f1fece3e4fee12e21815ebcab18f71 diff --git a/test/import-export.c b/test/import-export.c index 392f1dac..5d37146f 100644 --- a/test/import-export.c +++ b/test/import-export.c @@ -43,8 +43,8 @@ int main() { // Import and export both side's data - assert(meshlink_add_address(mesh1, "localhost")); - assert(meshlink_add_address(mesh2, "localhost")); + assert(meshlink_set_canonical_address(mesh1, meshlink_get_self(mesh1), "localhost", NULL)); + assert(meshlink_set_canonical_address(mesh2, meshlink_get_self(mesh2), "localhost", NULL)); char *data = meshlink_export(mesh1); assert(data);