Skip to content

Commit

Permalink
Fixed onion test.
Browse files Browse the repository at this point in the history
  • Loading branch information
irungentoo committed Feb 27, 2014
1 parent 8a31ff6 commit d0d9f95
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion auto_tests/onion_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void do_onions(Onions *on)

START_TEST(test_announce)
{
uint32_t i;
uint32_t i, j;
Onions *onions[NUM_ONIONS];

for (i = 0; i < NUM_ONIONS; ++i) {
Expand Down Expand Up @@ -289,6 +289,14 @@ START_TEST(test_announce)
c_sleep(50);
}

for (i = 0; i < 25 * 2; ++i) {
for (j = 0; j < NUM_ONIONS; ++j) {
do_onions(onions[j]);
}

c_sleep(50);
}

onion_addfriend(onions[7]->onion_c, onions[37]->onion->dht->c->self_public_key);
int frnum = onion_addfriend(onions[37]->onion_c, onions[7]->onion->dht->c->self_public_key);

Expand Down

0 comments on commit d0d9f95

Please sign in to comment.