Skip to content
Snippets Groups Projects
Commit aad896e5 authored by Damian Johnson's avatar Damian Johnson
Browse files

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
parent 4de7bf11
Branches
Tags
No related merge requests found
......@@ -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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment