Skip to content

Commit 4990381

Browse files
sandellomumrah
authored andcommitted
Use 127.0.0.1 instead of localhost
This alleviates IPv4 -vs- IPv6 issues in ZK and Kafka.
1 parent bdad6a1 commit 4990381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def instance(broker_id, zk_host, zk_port, zk_chroot=None):
255255
(host, port) = (parse.hostname, parse.port)
256256
fixture = ExternalService(host, port)
257257
else:
258-
(host, port) = ("localhost", get_open_port())
258+
(host, port) = ("127.0.0.1", get_open_port())
259259
fixture = KafkaFixture(host, port, broker_id, zk_host, zk_port, zk_chroot)
260260
fixture.open()
261261
return fixture

0 commit comments

Comments
 (0)