commit 899dbf2518a191167d779063a85c6c0285a68b7b Author: Karsten Loesing karsten.loesing@gmx.net Date: Thu Jul 23 21:10:22 2020 +0200
Fix unit tests.
Latest TGenTools contain a fix for correctly computing the start time of failed streams. We have to update our unit tests.
Related to #30362. --- onionperf/tests/test_analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/onionperf/tests/test_analysis.py b/onionperf/tests/test_analysis.py index 82e2043..6a8280b 100644 --- a/onionperf/tests/test_analysis.py +++ b/onionperf/tests/test_analysis.py @@ -48,7 +48,7 @@ def test_stream_complete_event_init(): assert_equals(complete.time_info['usecs-to-proxy-choice'], '348') assert_equals(complete.time_info['usecs-to-socket-connect'], '210') assert_equals(complete.time_info['usecs-to-socket-create'], '11') - assert_equals(complete.unix_ts_start, 1555940480.6472511) + assert_equals(complete.unix_ts_start, 1555940359.2286081)
def test_stream_error_event(): @@ -146,7 +146,7 @@ def test_stream_object_end_to_end(): 'now-ts': '5948446579043' }, 'stream_id': '4:12:localhost:127.0.0.1:46878:dc34og3c3aqdqntblnxkstzfvh7iy7llojd4fi5j23y2po32ock2k7ad.onion:0.0.0.0:8080', - 'unix_ts_start': 1555940480.6472511 + 'unix_ts_start': 1555940359.2286081 })
def test_parsing_parse_error():
tor-commits@lists.torproject.org