From 1754bc2c1e992e7d9e8da2f392bbed9e2324bf9f Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 11 Oct 2020 15:19:01 +0200 Subject: [PATCH] Fix waiting for peer node to become reachable in test suite. --- test/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.c b/test/utils.c index f3f338c5..53f83d30 100644 --- a/test/utils.c +++ b/test/utils.c @@ -133,7 +133,7 @@ void open_meshlink_pair_ephemeral(meshlink_handle_t **pa, meshlink_handle_t **pb static void pair_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool reachable) { (void)node; - if(reachable) { + if(reachable && meshlink_get_self(mesh) != node) { set_sync_flag(mesh->priv, true); } } -- 2.39.5