Skip to content

Commit

Permalink
GEODE-1965 Create backward-compatibility unit test framework
Browse files Browse the repository at this point in the history
previous commit broke some implementations of Host/VM
  • Loading branch information
bschuchardt committed Jan 30, 2017
1 parent 8062e9a commit f522883
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ public static void setAllVMsToCurrentVersion() {
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
}
}
}

Expand Down

0 comments on commit f522883

Please sign in to comment.