diff --git a/src/test/java/io/supertokens/test/CLIOptionsTest.java b/src/test/java/io/supertokens/test/CLIOptionsTest.java index bde51b448..8a2564109 100644 --- a/src/test/java/io/supertokens/test/CLIOptionsTest.java +++ b/src/test/java/io/supertokens/test/CLIOptionsTest.java @@ -32,6 +32,7 @@ import java.io.BufferedReader; import java.io.File; import java.io.FileReader; +import java.io.FileWriter; import static org.junit.Assert.*; @@ -151,6 +152,18 @@ public void testMultipleInstancesAtTheSameTime() throws Exception { assertEquals(Config.getConfig(process1.getProcess()).getErrorLogPath(process1.getProcess()), Config.getConfig(process2.getProcess()).getErrorLogPath(process2.getProcess())); + // clear log files + { + FileWriter f = new FileWriter(Config.getConfig(process.getProcess()).getInfoLogPath(process.getProcess())); + f.flush(); + f.close(); + } + { + FileWriter f = new FileWriter(Config.getConfig(process.getProcess()).getErrorLogPath(process.getProcess())); + f.flush(); + f.close(); + } + Logging.debug(process.getProcess(), TenantIdentifier.BASE_TENANT, "debugunique1"); Logging.debug(process1.getProcess(), TenantIdentifier.BASE_TENANT, "debugunique2"); Logging.debug(process2.getProcess(), TenantIdentifier.BASE_TENANT, "debugunique3");