This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new 7e58995028 Fix broken tests 7e58995028 is described below commit 7e589950286940f6a98484ee8872789c22bdc951 Author: Mark Thomas <ma...@apache.org> 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org