aboutsummaryrefslogtreecommitdiff
path: root/src/topology
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-04-22 14:56:32 +0000
committerNathan S. Evans <evans@in.tum.de>2010-04-22 14:56:32 +0000
commitd204255b728e50d7040abe5b7bc67656e758e6ef (patch)
treed2a0fee7ea156bd552a213e91d52cd4c06f2f79d /src/topology
parentca5b942e92761ac2e5ec00dcaaeb2b57427ec6cf (diff)
downloadgnunet-d204255b728e50d7040abe5b7bc67656e758e6ef.tar.gz
gnunet-d204255b728e50d7040abe5b7bc67656e758e6ef.zip
testing
Diffstat (limited to 'src/topology')
-rw-r--r--src/topology/test_gnunet_service_topology.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/topology/test_gnunet_service_topology.c b/src/topology/test_gnunet_service_topology.c
index 9148b6e0a..5f0f5cc91 100644
--- a/src/topology/test_gnunet_service_topology.c
+++ b/src/topology/test_gnunet_service_topology.c
@@ -33,6 +33,8 @@
33 */ 33 */
34#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60) 34#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60)
35 35
36#define CONNECT_ATTEMPTS 3
37
36 38
37static int ok; 39static int ok;
38 40
@@ -106,13 +108,13 @@ static void my_cb(void *cls,
106 last = d; 108 last = d;
107 return; 109 return;
108 } 110 }
109 GNUNET_TESTING_daemons_connect (last, d, TIMEOUT, 111 GNUNET_TESTING_daemons_connect (last, d, TIMEOUT, CONNECT_ATTEMPTS,
110 &notify_connect_complete, 112 &notify_connect_complete,
111 NULL); 113 NULL);
112 if (peers_left == 0) 114 if (peers_left == 0)
113 { 115 {
114 /* close circle */ 116 /* close circle */
115 GNUNET_TESTING_daemons_connect (d, first, TIMEOUT, 117 GNUNET_TESTING_daemons_connect (d, first, TIMEOUT, CONNECT_ATTEMPTS,
116 &notify_connect_complete, 118 &notify_connect_complete,
117 NULL); 119 NULL);
118 } 120 }