]> git.meshlink.io Git - meshlink-tiny/blobdiff - test/basicpp.cpp
Reduce the stack size of the background thread.
[meshlink-tiny] / test / basicpp.cpp
index c0550ecf71027e07f1de4cb5f751138c3536419d..06e732ce2bdd686aceafd5a53f5e4206da85d838 100644 (file)
@@ -5,7 +5,7 @@
 #include <cassert>
 #include <dirent.h>
 
-#include "meshlink++.h"
+#include "meshlink-tiny++.h"
 
 using namespace std;
 
@@ -24,10 +24,6 @@ int main(void) {
                assert(self);
                assert(!strcmp(self->name, "foo"));
 
-               // Disable local discovery.
-
-               mesh.enable_discovery(false);
-
                // Start and stop the mesh.
 
                assert(mesh.start());
@@ -55,8 +51,6 @@ int main(void) {
 
                // Start and stop the mesh.
 
-               mesh.enable_discovery(false);
-
                assert(mesh.start());
                mesh.stop();
        }