summaryrefslogtreecommitdiff
path: root/auto_tests/onion_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/onion_test.c')
-rw-r--r--auto_tests/onion_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/auto_tests/onion_test.c b/auto_tests/onion_test.c
index 18b7b523..0a9a0577 100644
--- a/auto_tests/onion_test.c
+++ b/auto_tests/onion_test.c
@@ -31,6 +31,8 @@ static inline IP get_loopback()
31} 31}
32static void do_onion(Onion *onion) 32static void do_onion(Onion *onion)
33{ 33{
34 unix_time_update();
35
34 networking_poll(onion->net, nullptr); 36 networking_poll(onion->net, nullptr);
35 do_dht(onion->dht); 37 do_dht(onion->dht);
36} 38}
@@ -327,6 +329,8 @@ static Onions *new_onions(uint16_t port, uint32_t *index)
327 return nullptr; 329 return nullptr;
328 } 330 }
329 331
332 unix_time_update();
333
330 logger_callback_log(on->log, (logger_cb *)print_debug_log, nullptr, index); 334 logger_callback_log(on->log, (logger_cb *)print_debug_log, nullptr, index);
331 335
332 Networking_Core *net = new_networking(on->log, ip, port); 336 Networking_Core *net = new_networking(on->log, ip, port);
@@ -385,6 +389,8 @@ static Onions *new_onions(uint16_t port, uint32_t *index)
385 389
386static void do_onions(Onions *on) 390static void do_onions(Onions *on)
387{ 391{
392 unix_time_update();
393
388 networking_poll(on->onion->net, nullptr); 394 networking_poll(on->onion->net, nullptr);
389 do_dht(on->onion->dht); 395 do_dht(on->onion->dht);
390 do_onion_client(on->onion_c); 396 do_onion_client(on->onion_c);