From 463bbd45f4bb790151f021f879e5fa7c998df5dd Mon Sep 17 00:00:00 2001 From: Yuta Okamoto Date: Thu, 19 Feb 2015 00:24:42 +0900 Subject: [PATCH] set an ipv4 local addr directly to avoid that "host.name" is resolved as an ipv6 addr in some environments See https://github.com/okapies/finagle-kafka/pull/6#issuecomment-74880930 --- src/test/scala/okapies/finagle/kafka/ClientTest.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/scala/okapies/finagle/kafka/ClientTest.scala b/src/test/scala/okapies/finagle/kafka/ClientTest.scala index 98f8888..6ecb0c3 100644 --- a/src/test/scala/okapies/finagle/kafka/ClientTest.scala +++ b/src/test/scala/okapies/finagle/kafka/ClientTest.scala @@ -40,6 +40,7 @@ trait KafkaTest extends BeforeAndAfterAll { suite: Suite => kafkaConfig = TestUtils.createBrokerConfig(1) kafkaConfig.put("zookeeper.connect", zkConn) + kafkaConfig.put("host.name", "127.0.0.1") kafkaConn = s"""${kafkaConfig.get("host.name")}:${kafkaConfig.get("port")}""" kafkaServer = TestUtils.createServer(new KafkaConfig(kafkaConfig))