diff options
author | Ivan Pouzyrevsky <sandello@yandex-team.ru> | 2013-06-02 14:25:58 +0400 |
---|---|---|
committer | David Arthur <mumrah@gmail.com> | 2013-06-07 21:20:55 -0400 |
commit | 499038118b2dde4ed634b2084b2d0693229a7c25 (patch) | |
tree | 90a6d3f858f759ba0c65e80a5f29ab505c36489d | |
parent | bdad6a16bbd8fdf1a3e29bd80a86e2ac8410246f (diff) | |
download | kafka-python-499038118b2dde4ed634b2084b2d0693229a7c25.tar.gz |
Use 127.0.0.1 instead of localhost
This alleviates IPv4 -vs- IPv6 issues in ZK and Kafka.
-rw-r--r-- | test/fixtures.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fixtures.py b/test/fixtures.py index 9f96f5a..abaaa5c 100644 --- a/test/fixtures.py +++ b/test/fixtures.py @@ -255,7 +255,7 @@ class KafkaFixture(object): (host, port) = (parse.hostname, parse.port) fixture = ExternalService(host, port) else: - (host, port) = ("localhost", get_open_port()) + (host, port) = ("127.0.0.1", get_open_port()) fixture = KafkaFixture(host, port, broker_id, zk_host, zk_port, zk_chroot) fixture.open() return fixture |