commit 8669ace2fb4159b8782d181894a5e53125444ed4
parent e82f36bccc5b3bc47c3a33d357092cf21b967a5e
Author: Nick Mathewson <nickm@torproject.org>
Date: Thu, 13 Aug 2020 14:20:39 -0400
Merge branch 'maint-0.4.4'
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/changes/bug40099 b/changes/bug40099
@@ -0,0 +1,4 @@
+ o Minor bugfixes (tests):
+ - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run on
+ its own. Previously, it would exit with an error.
+ Fixes bug 40099; bugfix on 0.2.8.1-alpha.
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c
@@ -1095,6 +1095,7 @@ test_rend_cache_clean_v2_descs_as_dir(void *data)
desc->timestamp = now;
desc->pk = pk_generate(0);
e->parsed = desc;
+ rend_cache_increment_allocation(rend_cache_entry_allocation(e));
digestmap_set(rend_cache_v2_dir, key, e);
/* Set the cutoff to minus 10 seconds. */