- assert_after((meshlink_send(mesh[2], meshlink_get_node(mesh[2], name[1]), "Hello", 5), received), 15);
+
+ for(int i = 0; i < 15; i++) {
+ assert(meshlink_send(mesh[2], meshlink_get_node(mesh[2], name[1]), "Hello", 5));
+
+ if(wait_sync_flag(&received, 1)) {
+ break;
+ }
+ }
+
+ assert(wait_sync_flag(&received, 15));
+
+ // Check that the second and third node have autoconnected to each other
+
+ devtool_edge_t *edges = NULL;
+ size_t nedges = 0;
+ assert_after((edges = devtool_get_all_edges(mesh[1], edges, &nedges), nedges == 3), 15);
+ free(edges);