This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 4965524136 Fix broken tests
4965524136 is described below
commit 4965524136b19c88495bfad25008d1ca7272348b
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Aug 27 12:05:16 2025 +0100
Fix broken tests
---
test/org/apache/catalina/session/FileStoreTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/org/apache/catalina/session/FileStoreTest.java
b/test/org/apache/catalina/session/FileStoreTest.java
index 4b80b389ac..f0f5f66929 100644
--- a/test/org/apache/catalina/session/FileStoreTest.java
+++ b/test/org/apache/catalina/session/FileStoreTest.java
@@ -59,13 +59,13 @@ public class FileStoreTest {
@Before
public void beforeEachTest() throws IOException {
fileStore.setDirectory(SESS_TEMPPATH);
- if (!dir.mkdir()) {
- Assert.fail();
+ if (!dir.exists() && !dir.mkdir()) {
+ Assert.fail(dir.getAbsolutePath());
}
- if (!file1.createNewFile()) {
+ if (!file1.exists() && !file1.createNewFile()) {
Assert.fail();
}
- if (!file2.createNewFile()) {
+ if (!file2.exists() && !file2.createNewFile()) {
Assert.fail();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]