diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-03-19 16:59:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-19 16:59:49 -0400 |
commit | 910422e8fae173f061d016c72eecc2015a09537e (patch) | |
tree | 997068e4156658c94fc98880a8476988acd26d50 /src/test/test_hs_service.c | |
parent | 85719b79b71eb5a4ef889272a393aa97bbc86134 (diff) | |
parent | 66d3120634ad3daffc3394b05ad5f9ef9716c18a (diff) | |
download | tor-910422e8fae173f061d016c72eecc2015a09537e.tar.gz tor-910422e8fae173f061d016c72eecc2015a09537e.zip |
Merge branch 'maint-0.3.2' into maint-0.3.3
Diffstat (limited to 'src/test/test_hs_service.c')
-rw-r--r-- | src/test/test_hs_service.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c index 11d96820ac..d62fcc8cab 100644 --- a/src/test/test_hs_service.c +++ b/src/test/test_hs_service.c @@ -419,8 +419,10 @@ test_service_intro_point(void *arg) * surprisingly slow... */ tt_u64_op(ip->time_to_expire, OP_GE, now + INTRO_POINT_LIFETIME_MIN_SECONDS - 500); + /* We add 500 seconds, because this time we're testing against the + * maximum allowed time. */ tt_u64_op(ip->time_to_expire, OP_LE, - now + INTRO_POINT_LIFETIME_MAX_SECONDS - 500); + now + INTRO_POINT_LIFETIME_MAX_SECONDS + 500); tt_assert(ip->replay_cache); tt_assert(ip->base.link_specifiers); /* By default, this is NOT a legacy object. */ |