]> git.meshlink.io Git - meshlink-tiny/blobdiff - test/channels-fork.c
Reduce the stack size of the background thread.
[meshlink-tiny] / test / channels-fork.c
index 74aa84b7f525a8370771d2ebeb8118ed69c9f96b..329d1310d46ee670fa9fcca1bd3f0278bf9bdb31 100644 (file)
@@ -18,7 +18,7 @@
 #endif
 
 #include "utils.h"
-#include "../src/meshlink.h"
+#include "../src/meshlink-tiny.h"
 
 static struct sync_flag bar_responded;
 static struct sync_flag foo_connected;
@@ -84,8 +84,6 @@ static int main1(int rfd, int wfd) {
        meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.1", "foo", "channels-fork", DEV_CLASS_BACKBONE);
        assert(mesh);
 
-       meshlink_enable_discovery(mesh, false);
-
        assert(meshlink_set_canonical_address(mesh, meshlink_get_self(mesh), "localhost", NULL));
 
        char *data = meshlink_export(mesh);
@@ -138,8 +136,6 @@ static int main2(int rfd, int wfd) {
        meshlink_handle_t *mesh = meshlink_open("channels_fork_conf.2", "bar", "channels-fork", DEV_CLASS_BACKBONE);
        assert(mesh);
 
-       meshlink_enable_discovery(mesh, false);
-
        assert(meshlink_set_canonical_address(mesh, meshlink_get_self(mesh), "localhost", NULL));
 
        char *data = meshlink_export(mesh);