CURATOR-106: Fix TestNamespaceFacade using empty connect strings

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

Branch: refs/heads/CURATOR-106
Commit: de823f600162cc27a23325ec97894b454b790b62
Parents: 757e45f
Author: Stig Rohde Døssing <[email protected]>
Authored: Fri Apr 21 22:03:58 2017 +0200
Committer: Stig Rohde Døssing <[email protected]>
Committed: Fri Apr 21 23:18:59 2017 +0200

----------------------------------------------------------------------
 .../org/apache/curator/framework/imps/TestNamespaceFacade.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/de823f60/curator-framework/src/test/java/org/apache/curator/framework/imps/TestNamespaceFacade.java
----------------------------------------------------------------------
diff --git 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestNamespaceFacade.java
 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestNamespaceFacade.java
index 9357d00..265b3ea 100644
--- 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestNamespaceFacade.java
+++ 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestNamespaceFacade.java
@@ -53,7 +53,7 @@ public class TestNamespaceFacade extends BaseClassForTests
     public void     testGetNamespace() throws Exception
     {
         CuratorFramework    client = 
CuratorFrameworkFactory.newClient(server.getConnectString(), new 
RetryOneTime(1));
-        CuratorFramework    client2 = 
CuratorFrameworkFactory.builder().namespace("snafu").retryPolicy(new 
RetryOneTime(1)).connectString("").build();
+        CuratorFramework    client2 = 
CuratorFrameworkFactory.builder().namespace("snafu").retryPolicy(new 
RetryOneTime(1)).connectString(server.getConnectString()).build();
         try
         {
             client.start();
@@ -232,7 +232,7 @@ public class TestNamespaceFacade extends BaseClassForTests
 
     @Test
     public void testUnfixForEmptyNamespace() {
-        CuratorFramework client = 
CuratorFrameworkFactory.builder().namespace("").retryPolicy(new 
RetryOneTime(1)).connectString("").build();
+        CuratorFramework client = 
CuratorFrameworkFactory.builder().namespace("").retryPolicy(new 
RetryOneTime(1)).connectString(server.getConnectString()).build();
         CuratorFrameworkImpl clientImpl = (CuratorFrameworkImpl) client;
 
         Assert.assertEquals(clientImpl.unfixForNamespace("/foo/bar"), 
"/foo/bar");

Reply via email to