kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject kafka git commit: MINOR: Fix unresolvable address in `testUnresolvableConnectString`
Date Tue, 19 Sep 2017 11:37:24 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk c96f89f84 -> 5e0bb3df9


MINOR: Fix unresolvable address in `testUnresolvableConnectString`

Before this change, the test always failed on my MacBook Pro.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>

Closes #3901 from ijuma/fix-unresolvable-address-in-zookeeper-test


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/5e0bb3df
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/5e0bb3df
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/5e0bb3df

Branch: refs/heads/trunk
Commit: 5e0bb3df9679797f0036d4718e2c1fd22dbee8f2
Parents: c96f89f
Author: Ismael Juma <ismael@juma.me.uk>
Authored: Tue Sep 19 12:37:11 2017 +0100
Committer: Ismael Juma <ismael@juma.me.uk>
Committed: Tue Sep 19 12:37:11 2017 +0100

----------------------------------------------------------------------
 .../src/test/scala/unit/kafka/controller/ZookeeperClientTest.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/5e0bb3df/core/src/test/scala/unit/kafka/controller/ZookeeperClientTest.scala
----------------------------------------------------------------------
diff --git a/core/src/test/scala/unit/kafka/controller/ZookeeperClientTest.scala b/core/src/test/scala/unit/kafka/controller/ZookeeperClientTest.scala
index 70a2409..3f80c28 100644
--- a/core/src/test/scala/unit/kafka/controller/ZookeeperClientTest.scala
+++ b/core/src/test/scala/unit/kafka/controller/ZookeeperClientTest.scala
@@ -41,7 +41,7 @@ class ZookeeperClientTest extends ZooKeeperTestHarness {
 
   @Test(expected = classOf[UnknownHostException])
   def testUnresolvableConnectString(): Unit = {
-    new ZookeeperClient("-1", -1, -1, null)
+    new ZookeeperClient("some.invalid.hostname.foo.bar.local", -1, -1, null)
   }
 
   @Test(expected = classOf[ZookeeperClientTimeoutException])


Mime
View raw message