aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_circuitbuild.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-10-17 21:43:59 -0400
committerNeel Chauhan <neel@neelc.org>2018-11-05 08:26:02 -0500
commit45b28167d7e2b1d5afb26db6f76ca2329a9bbc04 (patch)
treefc4b4e09ec23fc3245ee74fe53164cbf186eee30 /src/test/test_circuitbuild.c
parentfd2e0ac1c39088a315ccce648e52536a43ba3c27 (diff)
downloadtor-45b28167d7e2b1d5afb26db6f76ca2329a9bbc04.tar.gz
tor-45b28167d7e2b1d5afb26db6f76ca2329a9bbc04.zip
In count_acceptable_nodes(), count direct and indirect nodes with node_has_preferred_descriptor()
Diffstat (limited to 'src/test/test_circuitbuild.c')
-rw-r--r--src/test/test_circuitbuild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_circuitbuild.c b/src/test/test_circuitbuild.c
index 02eadecd98..dd47ad7689 100644
--- a/src/test/test_circuitbuild.c
+++ b/src/test/test_circuitbuild.c
@@ -21,11 +21,11 @@ static smartlist_t dummy_nodes;
static extend_info_t dummy_ei;
static int
-mock_count_acceptable_nodes(smartlist_t *nodes)
+mock_count_acceptable_nodes(smartlist_t *nodes, int direct)
{
(void)nodes;
- return DEFAULT_ROUTE_LEN + 1;
+ return direct ? 1 : DEFAULT_ROUTE_LEN + 1;
}
/* Test route lengths when the caller of new_route_len() doesn't