Skip to content

Commit

Permalink
fix: fix failing tests because of wrong temp location (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamassoltesz authored Oct 9, 2024
1 parent 0480bfd commit b2b67ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/io/supertokens/test/DotStartedFileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/supertokens/test/WebserverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit b2b67ee

Please sign in to comment.