[tor-commits] [sbws/m12] fix: tests: Consensus bandwidth might not be 0

juga at torproject.org juga at torproject.org
Wed Jun 30 08:53:27 UTC 2021


commit 685d3ea6b5ccbb96bae6fc7ca5ebae7509456f20
Author: juga0 <juga at riseup.net>
Date:   Mon Jun 21 10:08:06 2021 +0000

    fix: tests: Consensus bandwidth might not be 0
    
    Since tor version 0.4.7.0-alpha-dev with #40337 patch, chutney relays
    notice bandwidth changes.
---
 tests/integration/lib/test_relaylist.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/integration/lib/test_relaylist.py b/tests/integration/lib/test_relaylist.py
index 8311393..089635b 100644
--- a/tests/integration/lib/test_relaylist.py
+++ b/tests/integration/lib/test_relaylist.py
@@ -5,7 +5,8 @@ def test_relay_properties(rl):
     assert "Authority" in relay.flags
     assert not relay.exit_policy or not relay.exit_policy.is_exiting_allowed()
     assert relay.average_bandwidth == 1073741824
-    assert relay.consensus_bandwidth == 0
+    # Since tor version 0.4.7.0-alpha-dev, #40337 patch, chutney relays notice
+    # bandwidth changes, so consensus bandwidth might be higher than 0.
     assert relay.address == "127.0.0.1"
 
 





More information about the tor-commits mailing list