From 3e671a6a114a31ca1e6bbd0d13921637ee7ce1b5 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 10 Oct 2019 22:16:20 +0200 Subject: [PATCH] Fix waiting for two nodes to become reachable in the test suite. --- test/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/utils.c b/test/utils.c index d66ecdf9..f7dd3b3c 100644 --- a/test/utils.c +++ b/test/utils.c @@ -97,7 +97,9 @@ void open_meshlink_pair(meshlink_handle_t **pa, meshlink_handle_t **pb, const ch static void pair_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool reachable) { (void)node; - set_sync_flag(mesh->priv, reachable); + if(reachable) { + set_sync_flag(mesh->priv, true); + } } void start_meshlink_pair(meshlink_handle_t *a, meshlink_handle_t *b) { -- 2.39.5