aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_twopeer.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2011-02-08 11:10:50 +0000
committerNathan S. Evans <evans@in.tum.de>2011-02-08 11:10:50 +0000
commita6a510bb5d2f182d26ed5e1597a98a3ae195fb5c (patch)
tree9318ae851d74e1d26a009008cfb1578e1f32cbcf /src/dht/test_dht_twopeer.c
parentdd74b7a28b31929afcf91ac92d21d22db938af93 (diff)
downloadgnunet-a6a510bb5d2f182d26ed5e1597a98a3ae195fb5c.tar.gz
gnunet-a6a510bb5d2f182d26ed5e1597a98a3ae195fb5c.zip
test case changes required due to testing api change
Diffstat (limited to 'src/dht/test_dht_twopeer.c')
-rw-r--r--src/dht/test_dht_twopeer.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/dht/test_dht_twopeer.c b/src/dht/test_dht_twopeer.c
index aab3a1231..e85c6101b 100644
--- a/src/dht/test_dht_twopeer.c
+++ b/src/dht/test_dht_twopeer.c
@@ -318,7 +318,11 @@ connect_topology (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
318{ 318{
319 expected_connections = -1; 319 expected_connections = -1;
320 if ((pg != NULL) && (peers_left == 0)) 320 if ((pg != NULL) && (peers_left == 0))
321 expected_connections = GNUNET_TESTING_connect_topology (pg, GNUNET_TESTING_TOPOLOGY_CLIQUE, GNUNET_TESTING_TOPOLOGY_OPTION_ALL, 0.0, NULL, NULL); 321 expected_connections = GNUNET_TESTING_connect_topology (pg,
322 GNUNET_TESTING_TOPOLOGY_CLIQUE,
323 GNUNET_TESTING_TOPOLOGY_OPTION_ALL,
324 0.0,
325 TIMEOUT, 12, NULL, NULL);
322 326
323 GNUNET_SCHEDULER_cancel (die_task); 327 GNUNET_SCHEDULER_cancel (die_task);
324 if (expected_connections == GNUNET_SYSERR) 328 if (expected_connections == GNUNET_SYSERR)
@@ -409,7 +413,12 @@ run (void *cls,
409 &end_badly, "didn't start all daemons in reasonable amount of time!!!"); 413 &end_badly, "didn't start all daemons in reasonable amount of time!!!");
410 414
411 pg = GNUNET_TESTING_daemons_start (cfg, 415 pg = GNUNET_TESTING_daemons_start (cfg,
412 num_peers, TIMEOUT, NULL, NULL, &peers_started_callback, NULL, 416 num_peers,
417 10,
418 TIMEOUT,
419 NULL, NULL,
420 &peers_started_callback,
421 NULL,
413 &topology_callback, NULL, NULL); 422 &topology_callback, NULL, NULL);
414 423
415} 424}