From 8f6c30d77e69a7995195d4679017aad535c8ed6d Mon Sep 17 00:00:00 2001 From: Michael Han Date: Tue, 30 May 2017 09:10:41 -0700 Subject: [PATCH] ZOOKEEPER-2796: Fix broken test testCreateNodeWithoutData caused by ZK-2757. --- src/java/test/org/apache/zookeeper/ZooKeeperTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/test/org/apache/zookeeper/ZooKeeperTest.java b/src/java/test/org/apache/zookeeper/ZooKeeperTest.java index 0ce0eaa1eb2..b0ac07fc2d5 100644 --- a/src/java/test/org/apache/zookeeper/ZooKeeperTest.java +++ b/src/java/test/org/apache/zookeeper/ZooKeeperTest.java @@ -293,7 +293,7 @@ public void testCreateNodeWithoutData() throws Exception { .processZKCmd(zkMain.cl)); Assert.fail("Created the node with wrong option should " + "throw Exception."); - } catch (IllegalArgumentException e) { + } catch (MalformedPathException e) { Assert.assertEquals("Path must start with / character", e .getMessage()); }