Enable DHT in testcase
authorBart Polot <bart@net.in.tum.de>
Wed, 5 Oct 2011 08:53:05 +0000 (08:53 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 5 Oct 2011 08:53:05 +0000 (08:53 +0000)
src/mesh/test_mesh_small.conf
src/mesh/test_mesh_small_unicast.c

index 31d3a2ad8cebb7d29c78e768adaf039fb242e2a4..fb88679396d39a2d31933d0b014a786bf66de794 100644 (file)
@@ -4,7 +4,7 @@ DEFAULTCONFIG = test_mesh_small.conf
 
 [arm]
 PORT = 10010
-DEFAULTSERVICES = core mesh
+DEFAULTSERVICES = core dht mesh
 #DEBUG = YES
 
 [statistics]
@@ -13,7 +13,7 @@ PORT = 10000
 
 [dht]
 DEBUG = NO
-AUTOSTART = NO
+AUTOSTART = YES
 ACCEPT_FROM6 = ::1;
 ACCEPT_FROM = 127.0.0.1;
 HOSTNAME = localhost
@@ -53,7 +53,7 @@ DEBUG=YES
 [testing]
 NUM_PEERS = 16
 WEAKRANDOM = YES
-TOPOLOGY = CLIQUE
+TOPOLOGY = FROM_FILE
 CONNECT_TOPOLOGY = NONE
 TOPOLOGY_FILE = small.dat
 #CONNECT_TOPOLOGY = ERDOS_RENYI
index 80ba1efc17a714f1c807368ab8bb632001490763..cf611e949529a1dc57f5a7c6fa87e6a763e5633f 100644 (file)
@@ -336,7 +336,7 @@ connect_mesh_service (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   t = GNUNET_MESH_tunnel_create (h1, NULL, &ch, &dh, NULL);
   test_task =
       GNUNET_SCHEDULER_add_delayed(
-          GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 3),
+          GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 6),
           &do_test, NULL);
 }