curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [1/8] git commit: refine failure assertion
Date Tue, 20 May 2014 15:32:19 GMT
Repository: curator
Updated Branches:
  refs/heads/master 6784f8074 -> 351c67c97


refine failure assertion


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

Branch: refs/heads/master
Commit: e04eb47171bbafe49ee8c080c08a7156c386777a
Parents: 6784f80
Author: randgalt <randgalt@apache.org>
Authored: Thu May 15 13:56:32 2014 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Thu May 15 13:56:32 2014 -0500

----------------------------------------------------------------------
 .../ensemble/exhibitor/TestExhibitorEnsembleProvider.java     | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/e04eb471/curator-client/src/test/java/org/apache/curator/ensemble/exhibitor/TestExhibitorEnsembleProvider.java
----------------------------------------------------------------------
diff --git a/curator-client/src/test/java/org/apache/curator/ensemble/exhibitor/TestExhibitorEnsembleProvider.java
b/curator-client/src/test/java/org/apache/curator/ensemble/exhibitor/TestExhibitorEnsembleProvider.java
index b38cb43..7bc6cde 100644
--- a/curator-client/src/test/java/org/apache/curator/ensemble/exhibitor/TestExhibitorEnsembleProvider.java
+++ b/curator-client/src/test/java/org/apache/curator/ensemble/exhibitor/TestExhibitorEnsembleProvider.java
@@ -207,7 +207,7 @@ public class TestExhibitorEnsembleProvider extends BaseClassForTests
         ExhibitorEnsembleProvider   provider = new ExhibitorEnsembleProvider(exhibitors,
mockRestClient, "/foo", 10, new RetryOneTime(1));
         provider.pollForInitialEnsemble();
 
-        Timing                      timing = new Timing(4);
+        Timing                      timing = new Timing();
         CuratorZookeeperClient      client = new CuratorZookeeperClient(provider, timing.session(),
timing.connection(), null, new ExponentialBackoffRetry(timing.milliseconds(), 3));
         client.start();
         try
@@ -217,10 +217,7 @@ public class TestExhibitorEnsembleProvider extends BaseClassForTests
         }
         catch ( Exception e )
         {
-            System.out.println("provider.getConnectionString(): " + provider.getConnectionString()
+ " server.getPort(): " + server.getPort());
-            e.printStackTrace();
-            Assert.fail();
-            throw e;
+            Assert.fail("provider.getConnectionString(): " + provider.getConnectionString()
+ " server.getPort(): " + server.getPort(), e);
         }
         finally
         {


Mime
View raw message