Skip to content

Commit

Permalink
Fix breaking tests on OS X (#43)
Browse files Browse the repository at this point in the history
OS X resolves "localhost" to loopback ipv4 and ipv6 addresses,
whereas Ubuntu resolves it to just ipv4. This was causing tests
that only expect one listener to fail. The fix is to use
127.0.0.1 instead.
  • Loading branch information
mehaase committed Oct 11, 2018
1 parent 79452ce commit 9fa4c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import trustme


HOST = 'localhost'
HOST = '127.0.0.1'
RESOURCE = '/resource'

@pytest.fixture
Expand Down

0 comments on commit 9fa4c8a

Please sign in to comment.