diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-10-16 08:04:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-16 08:04:34 -0400 |
commit | b7fbd1f3297d548b16a18bbc7a5636c80fff70de (patch) | |
tree | 152a82c90505ac03187caecfcd04ca667845f007 /src/test/test_hs_service.c | |
parent | 8b3ec74e5fb1963fb42fc2fd47c373fd1cd3fd27 (diff) | |
parent | 38599de2dd4d7bc4e8e8e888ff3731c1ffac7255 (diff) | |
download | tor-b7fbd1f3297d548b16a18bbc7a5636c80fff70de.tar.gz tor-b7fbd1f3297d548b16a18bbc7a5636c80fff70de.zip |
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/test/test_hs_service.c')
-rw-r--r-- | src/test/test_hs_service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c index 7ef0fb6e07..bfe50eb3c6 100644 --- a/src/test/test_hs_service.c +++ b/src/test/test_hs_service.c @@ -748,6 +748,8 @@ test_helper_functions(void *arg) MOCK(node_get_by_id, mock_node_get_by_id); hs_service_init(); + time_t now = time(NULL); + update_approx_time(now); service = helper_create_service(); @@ -807,7 +809,6 @@ test_helper_functions(void *arg) /* Testing can_service_launch_intro_circuit() */ { - time_t now = time(NULL); /* Put the start of the retry period back in time, we should be allowed. * to launch intro circuit. */ service->state.num_intro_circ_launched = 2; @@ -831,7 +832,6 @@ test_helper_functions(void *arg) /* Testing intro_point_should_expire(). */ { - time_t now = time(NULL); /* Just some basic test of the current state. */ tt_u64_op(ip->introduce2_max, OP_GE, INTRO_POINT_MIN_LIFETIME_INTRODUCTIONS); |