]> git.meshlink.io Git - meshlink/commitdiff
Fix the import-export test failing sporadically.
authorGuus Sliepen <guus@meshlink.io>
Thu, 23 Jul 2020 22:06:26 +0000 (00:06 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 23 Jul 2020 22:06:26 +0000 (00:06 +0200)
Since two nodes connecting simultaneously can cause a node to be seen as
temporarily being down, thus setting the last_unreachable status.

test/import-export.c

index 15e213447eedd211f643aba6a2608e9939db7aef..b18725872e13d05f30a20a982ca0afed006f5907 100644 (file)
@@ -102,7 +102,6 @@ int main(void) {
 
        assert(meshlink_get_node_reachability(mesh1, bar, &last_reachable, &last_unreachable));
        assert(last_reachable);
-       assert(!last_unreachable);
 
        // Stop the meshes.