geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hiteshkhame...@apache.org
Subject incubator-geode git commit: GEODE-483 udated previous commit to avoid BindException in text code.
Date Fri, 01 Apr 2016 16:41:54 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop a781843b1 -> 7c777b1b3


GEODE-483 udated previous commit to avoid BindException in text code.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/7c777b1b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/7c777b1b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/7c777b1b

Branch: refs/heads/develop
Commit: 7c777b1b345a52d698825c7d045d6687ed59a8f7
Parents: a781843
Author: Hitesh Khamesra <hkhamesra@pivotal.io>
Authored: Fri Apr 1 09:40:36 2016 -0700
Committer: Hitesh Khamesra <hkhamesra@pivotal.io>
Committed: Fri Apr 1 09:41:53 2016 -0700

----------------------------------------------------------------------
 .../cache/client/internal/AutoConnectionSourceDUnitTest.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/7c777b1b/geode-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
b/geode-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
index cc5bffa..cfcff5e 100644
--- a/geode-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
+++ b/geode-core/src/test/java/com/gemstone/gemfire/cache/client/internal/AutoConnectionSourceDUnitTest.java
@@ -180,9 +180,9 @@ public class AutoConnectionSourceDUnitTest extends LocatorTestBase {
       putAndWaitForSuccess(vm2, REGION_NAME, "key2", "value2");
       Assert.assertEquals("value2", getInVM(vm1, "key2"));
     }catch(Exception ec) {
-      if(ec.getCause() != null && !(ec.getCause().getCause() instanceof BindException))
-        throw ec;
-      //else BindException let it pass
+      if(ec.getCause() != null && (ec.getCause().getCause() instanceof BindException))
+        return;//BindException let it pass
+      throw ec;
     }
   }
   


Mime
View raw message