summaryrefslogtreecommitdiff
path: root/src/test/test_dir_handle_get.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-04-25 15:47:07 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-04-25 15:47:07 +0300
commit88d6c2568d4a1ccc6fd3865e95bfb5243bf90395 (patch)
tree88d9169f0cddd879601af8f15d2f61e1cbef6a00 /src/test/test_dir_handle_get.c
parente8b26bb71b3465bd770f6ecff5be1d4e9a26d460 (diff)
parenta39789a02c2d89eaa8289a68a6b0fab0cc4d71dc (diff)
downloadtor-88d6c2568d4a1ccc6fd3865e95bfb5243bf90395.tar.gz
tor-88d6c2568d4a1ccc6fd3865e95bfb5243bf90395.zip
Merge branch 'maint-0.4.0' into release-0.4.0
Diffstat (limited to 'src/test/test_dir_handle_get.c')
-rw-r--r--src/test/test_dir_handle_get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c
index c3a17e7309..e57bd02584 100644
--- a/src/test/test_dir_handle_get.c
+++ b/src/test/test_dir_handle_get.c
@@ -2526,7 +2526,7 @@ test_dir_handle_get_status_vote_next_bandwidth(void* data)
/* Check cache lifetime */
char expbuf[RFC1123_TIME_LEN+1];
- time_t now = time(NULL);
+ time_t now = approx_time();
/* BANDWIDTH_CACHE_LIFETIME is defined in dircache.c. */
format_rfc1123_time(expbuf, (time_t)(now + 30*60));
char *expires = NULL;