This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch fix/temp-folder
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 59dbff4066d8b42bc782be4eb182a4add2084ad7
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Mon Feb 5 07:12:49 2024 +0100

    Uses target subfolder instead of TEMP
---
 .../struts2/dispatcher/multipart/AbstractMultiPartRequestTest.java | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git 
a/core/src/test/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequestTest.java
 
b/core/src/test/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequestTest.java
index 7c75a7a4d..4caa1ce63 100644
--- 
a/core/src/test/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequestTest.java
+++ 
b/core/src/test/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequestTest.java
@@ -53,12 +53,7 @@ abstract class AbstractMultiPartRequestTest {
 
     @BeforeClass
     public static void beforeClass() {
-        String dirProp = System.getProperty("java.io.tmpdir");
-        if (Path.of(dirProp).toFile().exists()) {
-            tempDir = Path.of(dirProp, "multi-part-test");
-        } else {
-            tempDir = Path.of("target", "multi-part-test");
-        }
+        tempDir = Path.of("target", "multi-part-test");
     }
 
     @Before

Reply via email to