mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed onion test.
This commit is contained in:
parent
8a31ff6269
commit
d0d9f95b34
@ -255,7 +255,7 @@ void do_onions(Onions *on)
|
|||||||
|
|
||||||
START_TEST(test_announce)
|
START_TEST(test_announce)
|
||||||
{
|
{
|
||||||
uint32_t i;
|
uint32_t i, j;
|
||||||
Onions *onions[NUM_ONIONS];
|
Onions *onions[NUM_ONIONS];
|
||||||
|
|
||||||
for (i = 0; i < NUM_ONIONS; ++i) {
|
for (i = 0; i < NUM_ONIONS; ++i) {
|
||||||
@ -289,6 +289,14 @@ START_TEST(test_announce)
|
|||||||
c_sleep(50);
|
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);
|
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);
|
int frnum = onion_addfriend(onions[37]->onion_c, onions[7]->onion->dht->c->self_public_key);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user