[tor-bugs] #28933 [Core Tor/sbws]: Run one sbws main loop using the test network as part of integration tests

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Dec 22 10:28:32 UTC 2018


#28933: Run one sbws main loop using the test network as part of integration tests
-------------------------------+-------------------------------
     Reporter:  juga           |      Owner:  juga
         Type:  defect         |     Status:  assigned
     Priority:  Medium         |  Milestone:  sbws: 1.0.x-final
    Component:  Core Tor/sbws  |    Version:  sbws: 1.0.2
     Severity:  Normal         |   Keywords:
Actual Points:                 |  Parent ID:  #28663
       Points:                 |   Reviewer:
      Sponsor:                 |
-------------------------------+-------------------------------
 Currently is not possible to run the main sbws scanner function
 `run_speedtest` because it uses threads, which doesn't work with pytest.
 The threads could be mocked or run one single process, but behaviour would
 be different as with threads.
 Since integration tests launch a testing network, it's possible to just
 run sbws configured to run that network.
 It's also possible to make sbws stops after the first loop when being in a
 testing network so that it doesn't run forever.
 While this won't behave the same way as in a public network, it might
 still help to find bugs.

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


More information about the tor-bugs mailing list