summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-10-08 18:59:27 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-10-08 19:00:43 +0300
commit081bd37315a57616144a8e6272a2ea796ace989e (patch)
treec6cbe9f536def745274ef941d12a611ca95e6f58 /src
parent9309eaf8ead0058aed6f1399b63fc8ae54cef799 (diff)
downloadtor-081bd37315a57616144a8e6272a2ea796ace989e.tar.gz
tor-081bd37315a57616144a8e6272a2ea796ace989e.zip
Fix flapping of test_service_intro_point() unittest.
Diffstat (limited to 'src')
-rw-r--r--src/test/test_hs_service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index c5854f0ff8..8993ce3fe2 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -674,9 +674,11 @@ test_service_intro_point(void *arg)
(void) arg;
+ update_approx_time(1481621834);
+
/* Test simple creation of an object. */
{
- time_t now = time(NULL);
+ time_t now = approx_time();
ip = helper_create_service_ip();
tt_assert(ip);
/* Make sure the authentication keypair is not zeroes. */