diff options
author | David Goulet <dgoulet@torproject.org> | 2016-06-20 09:53:11 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-06-20 09:53:11 -0400 |
commit | 85edef27eb495fe19d6ae08d94056ac367375316 (patch) | |
tree | 76ac9f77c5098e6931f9f13bdb9d698bcd0bb6ed /src/test/test_rendcache.c | |
parent | 6cedd4932352929496d8e017500362fafd367f18 (diff) | |
download | tor-85edef27eb495fe19d6ae08d94056ac367375316.tar.gz tor-85edef27eb495fe19d6ae08d94056ac367375316.zip |
test: Increase offset to rendcache descriptor time
Slow system can sometime take more than 10 seconds to reach the test
callsite resulting in the unit test failing when using time in the future or
in the past.
Fixes #19465
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_rendcache.c')
-rw-r--r-- | src/test/test_rendcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c index eac41ecdda..c8279fcced 100644 --- a/src/test/test_rendcache.c +++ b/src/test/test_rendcache.c @@ -17,8 +17,8 @@ static const int RECENT_TIME = -10; static const int TIME_IN_THE_PAST = -(REND_CACHE_MAX_AGE + \ - REND_CACHE_MAX_SKEW + 10); -static const int TIME_IN_THE_FUTURE = REND_CACHE_MAX_SKEW + 10; + REND_CACHE_MAX_SKEW + 60); +static const int TIME_IN_THE_FUTURE = REND_CACHE_MAX_SKEW + 60; static rend_data_t * mock_rend_data(const char *onion_address) |