You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by je...@apache.org on 2016/04/01 22:07:49 UTC

[09/18] incubator-geode git commit: GEODE-483 udated previous commit to avoid BindException in text code.

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/feature/GEODE-17-2
Commit: 7c777b1b345a52d698825c7d045d6687ed59a8f7
Parents: a781843
Author: Hitesh Khamesra <hk...@pivotal.io>
Authored: Fri Apr 1 09:40:36 2016 -0700
Committer: Hitesh Khamesra <hk...@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;
     }
   }