geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [06/15] geode git commit: GEODE-1965 Create backward-compatibility unit test framework
Date Mon, 30 Jan 2017 20:52:53 GMT
GEODE-1965 Create backward-compatibility unit test framework

previous commit broke some implementations of Host/VM


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

Branch: refs/heads/feature/GEODE-1930-2
Commit: f5228833ac94dce03a557e7ae3c602277bf4e939
Parents: 8062e9a
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
Authored: Mon Jan 30 09:26:54 2017 -0800
Committer: Bruce Schuchardt <bschuchardt@pivotal.io>
Committed: Mon Jan 30 09:26:54 2017 -0800

----------------------------------------------------------------------
 geode-core/src/test/java/org/apache/geode/test/dunit/Host.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/f5228833/geode-core/src/test/java/org/apache/geode/test/dunit/Host.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/test/dunit/Host.java b/geode-core/src/test/java/org/apache/geode/test/dunit/Host.java
index 277c803..b38b3c7 100755
--- a/geode-core/src/test/java/org/apache/geode/test/dunit/Host.java
+++ b/geode-core/src/test/java/org/apache/geode/test/dunit/Host.java
@@ -106,7 +106,11 @@ public abstract class Host implements Serializable {
       Host host = Host.getHost(hostIndex);
       int numVMs = host.getVMCount();
       for (int i = 0; i < numVMs; i++) {
-        host.getVM(VersionManager.CURRENT_VERSION, i);
+        try {
+          host.getVM(VersionManager.CURRENT_VERSION, i);
+        } catch (UnsupportedOperationException e) {
+          // not all implementations support versioning
+        }
       }
     }
 


Mime
View raw message