aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_rendcache.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2016-03-11 10:45:03 -0500
committerRoger Dingledine <arma@torproject.org>2016-03-11 10:45:03 -0500
commit53902963383e1babfccb8a4ffc7ed4e8accf2214 (patch)
treefb11ab029e3b215105ca9bcf606328e3b0fcbc6e /src/test/test_rendcache.c
parente167910fce2b83d9de3a252cdf02cabdafced14b (diff)
downloadtor-53902963383e1babfccb8a4ffc7ed4e8accf2214.tar.gz
tor-53902963383e1babfccb8a4ffc7ed4e8accf2214.zip
rip out hid_serv_acting_as_directory()
When we made HidServDirectoryV2 always 1, we removed the situation where a relay could choose not to be an HSDir. Now simplify the rest of the code to reflect this decision. (We have to remove two apparently unrelated free() calls in the unit tests, since they used to free stuff that we created as a side effect of calling router_get_my_routerinfo(), and now we no longer call that.)
Diffstat (limited to 'src/test/test_rendcache.c')
-rw-r--r--src/test/test_rendcache.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c
index 9898e87098..3ccfe5f9bc 100644
--- a/src/test/test_rendcache.c
+++ b/src/test/test_rendcache.c
@@ -454,11 +454,6 @@ test_rend_cache_store_v2_desc_as_dir(void *data)
rend_cache_init();
- // Test when we are not an HS dir
- mock_routerinfo = NULL;
- ret = rend_cache_store_v2_desc_as_dir("");
- tt_int_op(ret, OP_EQ, RCS_NOTDIR);
-
// Test when we can't parse the descriptor
mock_routerinfo = tor_malloc(sizeof(routerinfo_t));
ret = rend_cache_store_v2_desc_as_dir("unparseable");