commit b7d8be9b35b6d8b7df1c974d68fac95c2f79e8fd Author: Matt Traudt sirmatt@ksu.edu Date: Wed Jun 20 14:47:04 2018 -0400
Allow up to 10% error in RelayBandwidthRate test --- tests/integration/core/test_scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/integration/core/test_scanner.py b/tests/integration/core/test_scanner.py index 9f5bb8c..a9a467f 100644 --- a/tests/integration/core/test_scanner.py +++ b/tests/integration/core/test_scanner.py @@ -81,7 +81,7 @@ def test_measure_relay_with_relaybandwidthrate( result = result[0] assert isinstance(result, ResultSuccess) one_mbyte = 1 * 1024 * 1024 - allowed_error = 5 # bytes per second + allowed_error = 0.1 * one_mbyte # allow 10% error in either direction dls = result.downloads for dl in dls: assert_within(dl['amount'] / dl['duration'], one_mbyte, allowed_error)
tor-commits@lists.torproject.org