From 86b5b9112d47f24c38c611f2a31b0b22312ef077 Mon Sep 17 00:00:00 2001 From: tamassoltesz Date: Wed, 9 Oct 2024 15:34:45 +0200 Subject: [PATCH] fix: fix failing tests because of wrong temp location --- src/test/java/io/supertokens/test/DotStartedFileTest.java | 2 +- src/test/java/io/supertokens/test/WebserverTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/supertokens/test/DotStartedFileTest.java b/src/test/java/io/supertokens/test/DotStartedFileTest.java index 5463ba1fd..e54b30e89 100644 --- a/src/test/java/io/supertokens/test/DotStartedFileTest.java +++ b/src/test/java/io/supertokens/test/DotStartedFileTest.java @@ -188,7 +188,7 @@ public void processFailToStartDotStartedFileTest() throws Exception { @Test public void dotStartedFileAtTempDirLocation() throws Exception { - String tempDirLocation = new File("../temp/").getAbsolutePath(); + String tempDirLocation = new File("../tempDir/").getAbsolutePath(); String[] args = {"../", "tempDirLocation=" + tempDirLocation}; String host = "localhost"; diff --git a/src/test/java/io/supertokens/test/WebserverTest.java b/src/test/java/io/supertokens/test/WebserverTest.java index cbb4ea963..d87ee1e2a 100644 --- a/src/test/java/io/supertokens/test/WebserverTest.java +++ b/src/test/java/io/supertokens/test/WebserverTest.java @@ -967,7 +967,7 @@ public void validBasePath() throws InterruptedException, IOException, HttpRespon @Test public void tempDirLocationWebserverStarts() throws InterruptedException, HttpResponseException, IOException { - String tempDirLocation = new File("../temp/").getCanonicalPath(); + String tempDirLocation = new File("../tempDir/").getCanonicalPath(); String[] args = {"../", "tempDirLocation=" + tempDirLocation}; TestingProcess process = TestingProcessManager.start(args); assertNotNull(process.checkOrWaitForEvent(PROCESS_STATE.STARTED));