Skip to content

Commit 7c9267f

Browse files
committed
Bug 37554736 - Build: persistence.BerkeleyDBSimplePersistenceTests#testMultipleRestartsWithClientEnsureCache missing clean up when assertion failure (14.1.1.0 cl 114140 --> 14.1.1.0 CE)
[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v14.1.1.0/": change = 114151]
1 parent 211f677 commit 7c9267f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

prj/test/functional/persistence/src/test/java/persistence/BerkeleyDBSimplePersistenceTests.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2023, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
@@ -113,7 +113,8 @@ public void testMultipleRestartsWithClientEnsureCache(String sMode)
113113
props.setProperty("test.threads", "5");
114114
props.setProperty("test.persistence.members", "3");
115115

116-
final String sServer = "testMultipleRestartsWithClientEnsureCache";
116+
final String sServer = "testMultipleRestartsWithClientEnsureCache" +
117+
Character.toUpperCase(sMode.charAt(0)) + sMode.substring(1);
117118
final String sPersistentCache = "simple-persistent";
118119
NamedCache cache = getNamedCache(sPersistentCache);
119120
DistributedCacheService service = (DistributedCacheService) cache.getCacheService();
@@ -186,6 +187,8 @@ public void testMultipleRestartsWithClientEnsureCache(String sMode)
186187
}
187188
finally
188189
{
190+
getFactory().destroyCache(cache);
191+
stopAllApplications();
189192
CacheFactory.shutdown();
190193

191194
FileHelper.deleteDirSilent(fileActive);

0 commit comments

Comments
 (0)