Tigten up TimeLimiter test, and add default test logging config

This commit is contained in:
Derry Hamilton 2019-06-18 15:07:29 +01:00
parent 981b59225b
commit 31a2968f6a
2 changed files with 17 additions and 1 deletions

View file

@ -18,8 +18,11 @@ public class TestTimeLimiter {
Thread.sleep(10000); Thread.sleep(10000);
fail("Sleep wasn't interrupted by the limiter!"); fail("Sleep wasn't interrupted by the limiter!");
} catch(Exception e) { } catch(java.lang.InterruptedException e) {
// Pass // Pass
} catch(Exception e) {
e.printStackTrace();
fail("Unexpected exception.");
} }
} }
} }

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="Console"/>
</Root>
</Loggers>
</Configuration>