summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/onion_test.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/auto_tests/onion_test.c b/auto_tests/onion_test.c
index bdafa638..73f69744 100644
--- a/auto_tests/onion_test.c
+++ b/auto_tests/onion_test.c
@@ -246,7 +246,7 @@ void do_onions(Onions *on)
246 do_onion_client(on->onion_c); 246 do_onion_client(on->onion_c);
247} 247}
248 248
249#define NUM_ONIONS 24 249#define NUM_ONIONS 50
250 250
251START_TEST(test_announce) 251START_TEST(test_announce)
252{ 252{
@@ -278,22 +278,21 @@ START_TEST(test_announce)
278 } 278 }
279 } 279 }
280 280
281 /* 281 onion_addfriend(onions[7]->onion_c, onions[23]->onion->dht->c->self_public_key);
282 onion_addfriend(onions[7]->onion_c, onions[23]->onion->dht->c->self_public_key); 282 int frnum = onion_addfriend(onions[23]->onion_c, onions[7]->onion->dht->c->self_public_key);
283 int frnum = onion_addfriend(onions[23]->onion_c, onions[7]->onion->dht->c->self_public_key);
284 283
285 uint32_t ok = 0; 284 uint32_t ok = 0;
286 285
287 while (ok != 1) { 286 while (ok != 1) {
288 for (i = 0; i < NUM_ONIONS; ++i) { 287 for (i = 0; i < NUM_ONIONS; ++i) {
289 do_onions(onions[i]); 288 do_onions(onions[i]);
290 } 289 }
291 290
292 IP_Port ip_port; 291 IP_Port ip_port;
293 ok = onion_getfriendip(onions[23]->onion_c, frnum, &ip_port); 292 ok = onion_getfriendip(onions[23]->onion_c, frnum, &ip_port);
294 293
295 c_sleep(50); 294 c_sleep(50);
296 }*/ 295 }
297} 296}
298END_TEST 297END_TEST
299 298
@@ -310,7 +309,7 @@ Suite *onion_suite(void)
310 Suite *s = suite_create("Onion"); 309 Suite *s = suite_create("Onion");
311 310
312 DEFTESTCASE_SLOW(basic, 5); 311 DEFTESTCASE_SLOW(basic, 5);
313 DEFTESTCASE_SLOW(announce, 40); 312 DEFTESTCASE_SLOW(announce, 80);
314 return s; 313 return s;
315} 314}
316 315