mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 15:42:34 +01:00
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.
This commit is contained in:
parent
a9f852a0f6
commit
7c9450fb07
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,9 @@ test_router_dump_router_to_string_no_bridge_distribution_method(void *arg)
|
||||||
router = (routerinfo_t*)router_get_my_routerinfo();
|
router = (routerinfo_t*)router_get_my_routerinfo();
|
||||||
tt_ptr_op(router, !=, NULL);
|
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;
|
router->onion_curve25519_pkey = &ntor_keypair.pubkey;
|
||||||
|
|
||||||
/* Generate our server descriptor and ensure that the substring
|
/* Generate our server descriptor and ensure that the substring
|
||||||
|
|
Loading…
Add table
Reference in a new issue