geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject [2/2] geode git commit: GEODE-1965 Create backward-compatibility unit test framework
Date Mon, 30 Jan 2017 22:19:35 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/6ae2e174
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/6ae2e174
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/6ae2e174

Branch: refs/heads/release/1.1.0
Commit: 6ae2e1746e2ea25f2db463fd714861a8c364b0ca
Parents: cf628d5
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 14:19:05 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/6ae2e174/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