[tor-bugs] #17715 [Tor]: Write unit tests for directory_initiate_command_rend

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Nov 28 00:21:27 UTC 2015


#17715: Write unit tests for directory_initiate_command_rend
-----------------------------+--------------------------------
     Reporter:  teor         |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  Medium       |  Milestone:  Tor: 0.2.9.x-final
    Component:  Tor          |    Version:
     Severity:  Normal       |   Keywords:  easy tests
Actual Points:               |  Parent ID:
       Points:               |    Sponsor:
-----------------------------+--------------------------------
 To do this:
 * Mock connection_connect to do nothing and return 0
 * Mock directory_send_command to do nothing
 * Mock connection_ap_make_link to return a fake connection
   * just return the partner connection that's passed to it?

 It would be nice to get this done in 0.2.8, but I think it's more likely
 to be 0.2.9.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17715>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list