- add framework for mesh2 mutipeer tests
[oweals/gnunet.git] / src / mesh / test_mesh_local_2.c
index 75e5bf22985d8824947253178c605d8e497a5a18..935c3b2eb254974d0cbae6fc6e38de5e0a9bd454 100644 (file)
@@ -26,7 +26,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"
 
@@ -40,7 +40,7 @@ static unsigned int one = 1;
 
 static unsigned int two = 2;
 
-static int result;
+static int result = GNUNET_OK;
 
 static GNUNET_SCHEDULER_TaskIdentifier abort_task;
 
@@ -226,7 +226,6 @@ do_connect_peer_1 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   test_task = GNUNET_SCHEDULER_NO_TASK;
   mesh_peer_1 = GNUNET_MESH_connect (cfg,       /* configuration */
-                                     10,        /* queue size */
                                      (void *) &one,     /* cls */
                                      &inbound_tunnel,   /* inbound new hndlr */
                                      &inbound_end,      /* inbound end hndlr */
@@ -250,7 +249,6 @@ run (void *cls,
                                     (GNUNET_TIME_UNIT_SECONDS, 20), &do_abort,
                                     NULL);
   mesh_peer_2 = GNUNET_MESH_connect (cfg,       /* configuration */
-                                     10,        /* queue size */
                                      (void *) &two,     /* cls */
                                      &inbound_tunnel,   /* inbound new hndlr */
                                      &inbound_end,      /* inbound end hndlr */