diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-02-08 11:10:50 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-02-08 11:10:50 +0000 |
commit | a6a510bb5d2f182d26ed5e1597a98a3ae195fb5c (patch) | |
tree | 9318ae851d74e1d26a009008cfb1578e1f32cbcf /src/dht/test_dht_twopeer_put_get.c | |
parent | dd74b7a28b31929afcf91ac92d21d22db938af93 (diff) | |
download | gnunet-a6a510bb5d2f182d26ed5e1597a98a3ae195fb5c.tar.gz gnunet-a6a510bb5d2f182d26ed5e1597a98a3ae195fb5c.zip |
test case changes required due to testing api change
Diffstat (limited to 'src/dht/test_dht_twopeer_put_get.c')
-rw-r--r-- | src/dht/test_dht_twopeer_put_get.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/dht/test_dht_twopeer_put_get.c b/src/dht/test_dht_twopeer_put_get.c index 2427edef9..187b99479 100644 --- a/src/dht/test_dht_twopeer_put_get.c +++ b/src/dht/test_dht_twopeer_put_get.c | |||
@@ -488,7 +488,13 @@ peers_started_callback (void *cls, | |||
488 | if ((pg != NULL)) /* Sanity check */ | 488 | if ((pg != NULL)) /* Sanity check */ |
489 | { | 489 | { |
490 | /* Connect peers in a "straight line" topology, return the number of expected connections */ | 490 | /* Connect peers in a "straight line" topology, return the number of expected connections */ |
491 | expected_connections = GNUNET_TESTING_connect_topology (pg, GNUNET_TESTING_TOPOLOGY_LINE, GNUNET_TESTING_TOPOLOGY_OPTION_ALL, 0.0, NULL, NULL); | 491 | expected_connections = GNUNET_TESTING_connect_topology (pg, |
492 | GNUNET_TESTING_TOPOLOGY_LINE, | ||
493 | GNUNET_TESTING_TOPOLOGY_OPTION_ALL, | ||
494 | 0.0, | ||
495 | TIMEOUT, | ||
496 | 12, | ||
497 | NULL, NULL); | ||
492 | } | 498 | } |
493 | 499 | ||
494 | /* Cancel current timeout fail task */ | 500 | /* Cancel current timeout fail task */ |
@@ -532,8 +538,16 @@ run (void *cls, | |||
532 | /* Start num_peers peers, call peers_started_callback on peer start, topology_callback on peer connect */ | 538 | /* Start num_peers peers, call peers_started_callback on peer start, topology_callback on peer connect */ |
533 | /* Read the API documentation for other parameters! */ | 539 | /* Read the API documentation for other parameters! */ |
534 | pg = GNUNET_TESTING_daemons_start (cfg, | 540 | pg = GNUNET_TESTING_daemons_start (cfg, |
535 | num_peers, TIMEOUT, NULL, NULL, &peers_started_callback, NULL, | 541 | num_peers, |
536 | &topology_callback, NULL, NULL); | 542 | 2, |
543 | TIMEOUT, | ||
544 | NULL, | ||
545 | NULL, | ||
546 | &peers_started_callback, | ||
547 | NULL, | ||
548 | &topology_callback, | ||
549 | NULL, | ||
550 | NULL); | ||
537 | 551 | ||
538 | } | 552 | } |
539 | 553 | ||