Opened 2 months ago

#31331 new defect

scanner integration test fails some times because the test Web server is not multi-threaded

Reported by: juga Owned by:
Priority: Medium Milestone: sbws: unspecified
Component: Core Tor/sbws Version: sbws: 1.1.0
Severity: Normal Keywords:
Cc: juga Actual Points:
Parent ID: Points: 1
Reviewer: Sponsor:

Description

Because the Python Web server used for the integration tests is not multi-threaded, some relays' circuits timeout.
Most of the cases, this is desired since in a public network this would happen too.
It is not desired in the case that the integration test check for a concrete relay measurement success, which is tests/integration/core/test_scanner.py::test_measure_relay_with_maxadvertisedbandwidth (https://travis-ci.org/torproject/sbws/jobs/565274602#L1971).
This case can be solved by checking the descriptor bandwidth, not the measurement.
Ideally, the Python Web server should be changed to be multi-threaded and shutting down some relays for the cases where the tests check failures.

Child Tickets

Change History (0)

Note: See TracTickets for help on using tickets.