diff options
| author | Damian Johnson <atagar@torproject.org> | 2019-05-07 08:50:37 -0700 |
|---|---|---|
| committer | Damian Johnson <atagar@torproject.org> | 2019-05-07 08:50:37 -0700 |
| commit | aad896e53589ab03050dd9b820dd8629acf6df4a (patch) | |
| tree | 399ffe3c8db44a7303a50f09f2b8527f2f444a1b | |
| parent | 4de7bf1160bf9a7a054aa89703f3e1f420763373 (diff) | |
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
| -rw-r--r-- | test/integ/client/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
