File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/test/java/io/supertokens/test Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 32
32
import java .io .BufferedReader ;
33
33
import java .io .File ;
34
34
import java .io .FileReader ;
35
+ import java .io .FileWriter ;
35
36
36
37
import static org .junit .Assert .*;
37
38
@@ -151,6 +152,18 @@ public void testMultipleInstancesAtTheSameTime() throws Exception {
151
152
assertEquals (Config .getConfig (process1 .getProcess ()).getErrorLogPath (process1 .getProcess ()),
152
153
Config .getConfig (process2 .getProcess ()).getErrorLogPath (process2 .getProcess ()));
153
154
155
+ // clear log files
156
+ {
157
+ FileWriter f = new FileWriter (Config .getConfig (process .getProcess ()).getInfoLogPath (process .getProcess ()));
158
+ f .flush ();
159
+ f .close ();
160
+ }
161
+ {
162
+ FileWriter f = new FileWriter (Config .getConfig (process .getProcess ()).getErrorLogPath (process .getProcess ()));
163
+ f .flush ();
164
+ f .close ();
165
+ }
166
+
154
167
Logging .debug (process .getProcess (), TenantIdentifier .BASE_TENANT , "debugunique1" );
155
168
Logging .debug (process1 .getProcess (), TenantIdentifier .BASE_TENANT , "debugunique2" );
156
169
Logging .debug (process2 .getProcess (), TenantIdentifier .BASE_TENANT , "debugunique3" );
You can’t perform that action at this time.
0 commit comments