[tor-commits] [stem/master] Check for both v4 and v5 link protocols in tests
atagar at torproject.org
atagar at torproject.org
Tue May 7 16:06:49 UTC 2019
commit aad896e53589ab03050dd9b820dd8629acf6df4a
Author: Damian Johnson <atagar at torproject.org>
Date: Tue May 7 08:50:37 2019 -0700
Check for both v4 and v5 link protocols in tests
Tor's tor-0.2.9.14 branch uses v4 link protocols. Accepting both versions in
our integ tests...
======================================================================
FAIL: test_established
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/atagar/Desktop/stem/test/integ/client/connection.py", line 66, in test_established
self.assertEqual(5, int(conn.link_protocol))
AssertionError: 5 != 4
---
test/integ/client/connection.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/integ/client/connection.py b/test/integ/client/connection.py
index a43283b9..2294a07d 100644
--- a/test/integ/client/connection.py
+++ b/test/integ/client/connection.py
@@ -63,4 +63,4 @@ class TestConnection(unittest.TestCase):
"""
conn = Relay.connect('127.0.0.1', test.runner.ORPORT)
- self.assertEqual(5, int(conn.link_protocol))
+ self.assertTrue(int(conn.link_protocol) in (4, 5))
More information about the tor-commits
mailing list