Skip to content

Commit f9a9ecf

Browse files
committed
Prevent test from hanging when deleting secure test data really isn't working
1 parent 78c8c69 commit f9a9ecf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/core-test-module/src/main/java/testutil/SecureTestDataHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ private static Properties accessSecureTestData()
4848
private static void cleanupSecureTestData() {
4949
final File file = new File(RESOURCES + "/secure-testdata/legacy-signed-enveloped-email");
5050

51-
while (file.exists()) {
51+
int tries = 0;
52+
while (file.exists() && tries++ <= 10) {
5253
try {
5354
FileUtils.deleteDirectory(file);
5455
} catch (IOException e) {

0 commit comments

Comments
 (0)