diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-02-14 13:40:42 +0200 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-03-27 12:43:39 -0400 |
commit | ab16f1e2a10ee1b95118ec266ba454697e9af012 (patch) | |
tree | 19d752188e2bd80bc3e55b8fad294d3d891cfc8f /src/or/nodelist.c | |
parent | f29d158330a8c6bcc91b71a888db741766135aaf (diff) | |
download | tor-ab16f1e2a10ee1b95118ec266ba454697e9af012.tar.gz tor-ab16f1e2a10ee1b95118ec266ba454697e9af012.zip |
test: Add unittest for the OR connection failure cache
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r-- | src/or/nodelist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c index 391b31d683..7303539c87 100644 --- a/src/or/nodelist.c +++ b/src/or/nodelist.c @@ -161,8 +161,8 @@ init_nodelist(void) } /** As node_get_by_id, but returns a non-const pointer */ -node_t * -node_get_mutable_by_id(const char *identity_digest) +MOCK_IMPL(node_t *, +node_get_mutable_by_id,(const char *identity_digest)) { node_t search, *node; if (PREDICT_UNLIKELY(the_nodelist == NULL)) |