summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Pouzyrevsky <sandello@yandex-team.ru>2013-06-02 14:25:58 +0400
committerDavid Arthur <mumrah@gmail.com>2013-06-07 21:20:55 -0400
commit499038118b2dde4ed634b2084b2d0693229a7c25 (patch)
tree90a6d3f858f759ba0c65e80a5f29ab505c36489d
parentbdad6a16bbd8fdf1a3e29bd80a86e2ac8410246f (diff)
downloadkafka-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.py2
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