This is an automated email from the ASF dual-hosted git repository.
jensdeppe 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 874cd66 GEODE-5446: PdxAttributesJUnitTest does not teardown cache in
correct order (#2152)
874cd66 is described below
commit 874cd6626c9752c80b3395b37939aafa52b9157d
Author: Jens Deppe <[email protected]>
AuthorDate: Thu Jul 19 13:12:00 2018 -0700
GEODE-5446: PdxAttributesJUnitTest does not teardown cache in correct order
(#2152)
---
.../java/org/apache/geode/pdx/PdxAttributesJUnitTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/geode-core/src/integrationTest/java/org/apache/geode/pdx/PdxAttributesJUnitTest.java
b/geode-core/src/integrationTest/java/org/apache/geode/pdx/PdxAttributesJUnitTest.java
index 5adf382..175af2a 100644
---
a/geode-core/src/integrationTest/java/org/apache/geode/pdx/PdxAttributesJUnitTest.java
+++
b/geode-core/src/integrationTest/java/org/apache/geode/pdx/PdxAttributesJUnitTest.java
@@ -77,6 +77,9 @@ public class PdxAttributesJUnitTest extends
JUnit4CacheTestCase {
if (instance != null) {
instance.close();
}
+ if (cache != null) {
+ cache.close();
+ }
FileUtils.deleteDirectory(diskDir);
File[] defaultStoreFiles = new File(".").listFiles(new FilenameFilter() {
@@ -88,9 +91,6 @@ public class PdxAttributesJUnitTest extends
JUnit4CacheTestCase {
for (File file : defaultStoreFiles) {
FileUtils.forceDelete(file);
}
- if (cache != null) {
- cache.close();
- }
}
@Test