mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Merge remote-tracking branch 'tor-github/pr/553'
This commit is contained in:
commit
00509aaafa
1 changed files with 4 additions and 0 deletions
|
@ -788,7 +788,9 @@ test_rend_cache_clean(void *data)
|
|||
desc_two->pk = pk_generate(1);
|
||||
|
||||
strmap_set_lc(rend_cache, "foo1", one);
|
||||
rend_cache_increment_allocation(rend_cache_entry_allocation(one));
|
||||
strmap_set_lc(rend_cache, "foo2", two);
|
||||
rend_cache_increment_allocation(rend_cache_entry_allocation(two));
|
||||
|
||||
rend_cache_clean(time(NULL), REND_CACHE_TYPE_CLIENT);
|
||||
tt_int_op(strmap_size(rend_cache), OP_EQ, 0);
|
||||
|
@ -806,7 +808,9 @@ test_rend_cache_clean(void *data)
|
|||
desc_one->pk = pk_generate(0);
|
||||
desc_two->pk = pk_generate(1);
|
||||
|
||||
rend_cache_increment_allocation(rend_cache_entry_allocation(one));
|
||||
strmap_set_lc(rend_cache, "foo1", one);
|
||||
rend_cache_increment_allocation(rend_cache_entry_allocation(two));
|
||||
strmap_set_lc(rend_cache, "foo2", two);
|
||||
|
||||
rend_cache_clean(time(NULL), REND_CACHE_TYPE_CLIENT);
|
||||
|
|
Loading…
Add table
Reference in a new issue