diff options
author | teor <teor@torproject.org> | 2019-01-10 17:12:15 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-02-19 21:43:12 +1000 |
commit | 7c9450fb073c8b5fb38dab826de7f0356c4828e2 (patch) | |
tree | 1408cd3d64b39c3470f9681f130eacc3d8c0c7f1 /src/test/test_router.c | |
parent | a9f852a0f65a24fc8c0e33caf82d1e3c845c23cf (diff) | |
download | tor-7c9450fb073c8b5fb38dab826de7f0356c4828e2.tar.gz tor-7c9450fb073c8b5fb38dab826de7f0356c4828e2.zip |
test_router: Add comment to explain mocking
Add comment in
test_router_dump_router_to_string_no_bridge_distribution_method to explain
the effect of a mocked function.
Diffstat (limited to 'src/test/test_router.c')
-rw-r--r-- | src/test/test_router.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_router.c b/src/test/test_router.c index ea0ee3e84c..5477ab51e9 100644 --- a/src/test/test_router.c +++ b/src/test/test_router.c @@ -100,6 +100,9 @@ test_router_dump_router_to_string_no_bridge_distribution_method(void *arg) router = (routerinfo_t*)router_get_my_routerinfo(); tt_ptr_op(router, !=, NULL); + /* The real router_get_my_routerinfo() looks up onion_curve25519_pkey using + * get_current_curve25519_keypair(), but we don't initialise static data in + * this test. */ router->onion_curve25519_pkey = &ntor_keypair.pubkey; /* Generate our server descriptor and ensure that the substring |