[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #28933 [Core Tor/sbws]: Run one sbws main loop using the test network as part of integration tests
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs