zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject zookeeper git commit: ZOOKEEPER-2656: Fix ServerConfigTest#testValidArguments test case fai…
Date Fri, 23 Dec 2016 05:59:02 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/branch-3.5 b98ee3646 -> 0295aec68


ZOOKEEPER-2656: Fix ServerConfigTest#testValidArguments test case fai…

…lures

Author: Rakesh Radhakrishnan <rakeshr@apache.org>

Reviewers: Michael Han <hanm@apache.org>

Closes #134 from rakeshadr/ZK-2656

(cherry picked from commit 085a7ab4efe04e566e952af1123e98eda609bd1b)
Signed-off-by: Michael Han <hanm@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/0295aec6
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/0295aec6
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/0295aec6

Branch: refs/heads/branch-3.5
Commit: 0295aec68b31a4e1d3d6ba076e7509957947b8a0
Parents: b98ee36
Author: Rakesh Radhakrishnan <rakeshr@apache.org>
Authored: Thu Dec 22 21:58:23 2016 -0800
Committer: Michael Han <hanm@apache.org>
Committed: Thu Dec 22 21:58:37 2016 -0800

----------------------------------------------------------------------
 src/java/test/org/apache/zookeeper/ServerConfigTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/0295aec6/src/java/test/org/apache/zookeeper/ServerConfigTest.java
----------------------------------------------------------------------
diff --git a/src/java/test/org/apache/zookeeper/ServerConfigTest.java b/src/java/test/org/apache/zookeeper/ServerConfigTest.java
index d4855fd..e2d0da8 100644
--- a/src/java/test/org/apache/zookeeper/ServerConfigTest.java
+++ b/src/java/test/org/apache/zookeeper/ServerConfigTest.java
@@ -24,6 +24,8 @@ import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
 
+import java.io.File;
+
 public class ServerConfigTest {
 
     private ServerConfig serverConfig;
@@ -45,7 +47,7 @@ public class ServerConfigTest {
         serverConfig.parse(args);
 
         assertEquals(2181, serverConfig.getClientPortAddress().getPort());
-        assertEquals("/data/dir", serverConfig.getDataDir());
+        assertEquals(new File("/data/dir"), serverConfig.getDataDir());
         assertEquals(60000, serverConfig.getTickTime());
         assertEquals(10000, serverConfig.getMaxClientCnxns());
     }


Mime
View raw message