- disable try_connect to force topology
[oweals/gnunet.git] / src / mesh / test_mesh_api.c
index 43505d773143f53f703027746fefff99d90634c4..349ec80f0e97783901673271d367dd774729051a 100644 (file)
@@ -25,7 +25,7 @@
  */
 #include "platform.h"
 #include "gnunet_util_lib.h"
-#include "gnunet_testing_lib-new.h"
+#include "gnunet_testing_lib.h"
 #include "gnunet_dht_service.h"
 #include "gnunet_mesh_service.h"
 
@@ -101,7 +101,7 @@ run (void *cls,
   static const GNUNET_MESH_ApplicationType app[] =
     { 1, 2, 3, 4, 5, 6, 7, 8, 0 };
 
-  mesh = GNUNET_MESH_connect (cfg, 10, NULL, NULL, NULL, handlers, app);
+  mesh = GNUNET_MESH_connect (cfg, NULL, NULL, NULL, handlers, app);
   if (NULL == mesh)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "test: Couldn't connect to mesh :(\n");
@@ -126,6 +126,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
+  result = GNUNET_OK;
   if (0 != GNUNET_TESTING_peer_run ("test-mesh-api",
                                    "test_mesh.conf",
                                    &run, NULL))