aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_service.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-09 16:37:47 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-09 16:37:47 -0400
commitab064cf762f0049913ae346dc9b500bc9580395a (patch)
tree190ff4e7b0435dfcf92542a92d790813c676b799 /src/test/test_hs_service.c
parent755f0016009424935f3b9216cad79d54129614cc (diff)
parent081bd37315a57616144a8e6272a2ea796ace989e (diff)
downloadtor-ab064cf762f0049913ae346dc9b500bc9580395a.tar.gz
tor-ab064cf762f0049913ae346dc9b500bc9580395a.zip
Merge remote-tracking branch 'tor-github/pr/1399'
Diffstat (limited to 'src/test/test_hs_service.c')
-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 efe4166bf9..66194cee3d 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. */