Skip to content

Commit

Permalink
set an ipv4 local addr directly to avoid that "host.name" is resolved…
Browse files Browse the repository at this point in the history
… as an ipv6 addr in some environments

See #6 (comment)
  • Loading branch information
okapies committed Feb 18, 2015
1 parent 4abb34d commit 463bbd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/scala/okapies/finagle/kafka/ClientTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 463bbd4

Please sign in to comment.