diff options
author | Alex Rudyy <orudyy@apache.org> | 2014-07-04 14:00:14 +0000 |
---|---|---|
committer | Alex Rudyy <orudyy@apache.org> | 2014-07-04 14:00:14 +0000 |
commit | 782c2efa2217a907ea8ffd426213252857e1aa0c (patch) | |
tree | 956b0a684a1587b04f3529359a2bb42b8f70684b /java | |
parent | 980e42508cb3ae09ec0ffc5613c76ede8298a319 (diff) | |
download | qpid-python-782c2efa2217a907ea8ffd426213252857e1aa0c.tar.gz |
QPID-5875: Fix intruder protection system test
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1607860 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r-- | java/bdbstore/systests/src/main/java/org/apache/qpid/server/store/berkeleydb/BDBHAVirtualHostNodeRestTest.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/java/bdbstore/systests/src/main/java/org/apache/qpid/server/store/berkeleydb/BDBHAVirtualHostNodeRestTest.java b/java/bdbstore/systests/src/main/java/org/apache/qpid/server/store/berkeleydb/BDBHAVirtualHostNodeRestTest.java index 1b904c94a4..cfa9557977 100644 --- a/java/bdbstore/systests/src/main/java/org/apache/qpid/server/store/berkeleydb/BDBHAVirtualHostNodeRestTest.java +++ b/java/bdbstore/systests/src/main/java/org/apache/qpid/server/store/berkeleydb/BDBHAVirtualHostNodeRestTest.java @@ -281,9 +281,17 @@ public class BDBHAVirtualHostNodeRestTest extends QpidRestTestCase envConfig.setAllowCreate(true); envConfig.setTransactional(true); envConfig.setDurability(Durability.parse((String)nodeData.get(BDBHAVirtualHostNode.DURABILITY))); - ReplicatedEnvironment intruder = new ReplicatedEnvironment(environmentPathFile, replicationConfig, envConfig); - waitForAttributeChanged(_baseNodeRestUrl + NODE1, VirtualHost.STATE, State.ERRORED.name()); + ReplicatedEnvironment intruder = null; + try + { + intruder = new ReplicatedEnvironment(environmentPathFile, replicationConfig, envConfig); + } + finally + { + intruder.close(); + } + waitForAttributeChanged(_baseNodeRestUrl + NODE1, VirtualHostNode.STATE, State.ERRORED.name()); } private void createHANode(String nodeName, int nodePort, int helperPort) throws Exception |