This is an automated email from the ASF dual-hosted git repository.
khowe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 3f4b953 GEODE-3720: Bounce DUnit VMs to give the test a clean
environment
3f4b953 is described below
commit 3f4b953a6679fd307f3b3c4036122e9a4de638a9
Author: Ken Howe <[email protected]>
AuthorDate: Wed Oct 11 13:34:20 2017 -0700
GEODE-3720: Bounce DUnit VMs to give the test a clean environment
Modify the CleanupDUnitVMs Rule to ensure VMs are clean both before and
after the test.
---
.../org/apache/geode/test/dunit/rules/CleanupDUnitVMsRule.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/geode-core/src/test/java/org/apache/geode/test/dunit/rules/CleanupDUnitVMsRule.java
b/geode-core/src/test/java/org/apache/geode/test/dunit/rules/CleanupDUnitVMsRule.java
index 1d8a355..359cdd9 100644
---
a/geode-core/src/test/java/org/apache/geode/test/dunit/rules/CleanupDUnitVMsRule.java
+++
b/geode-core/src/test/java/org/apache/geode/test/dunit/rules/CleanupDUnitVMsRule.java
@@ -15,6 +15,7 @@
package org.apache.geode.test.dunit.rules;
import static org.apache.geode.test.dunit.Host.getHost;
+import static org.apache.geode.test.dunit.Host.getHostCount;
import org.apache.geode.test.dunit.VM;
import org.junit.After;
@@ -25,6 +26,13 @@ import java.io.Serializable;
public class CleanupDUnitVMsRule extends ExternalResource implements
Serializable {
@Override
+ public void before() {
+ if (getHostCount() > 0) {
+ getHost(0).getAllVMs().forEach(VM::bounce);
+ }
+ }
+
+ @Override
public void after() {
getHost(0).getAllVMs().forEach(VM::bounce);
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].