test: fixed MarvelousServerTest with non-erroring tinylog config

This commit is contained in:
Yannik Bretschneider 2021-07-22 15:57:32 +02:00
parent b62f7a82d3
commit 1d257b3c08

View File

@ -56,18 +56,14 @@ class MarvelousServerTest extends BaseGameLogicTest {
json = new JSON(characterConfig);
Map<String, String> map = new HashMap<>();
Configuration.replace(map);
map.put("writer1", "console");
map.put("writer1.level", "trace");
map.put("writer1.format", "[{thread}] {level}: {message}");
Configuration.replace(map);
}
if (!Configuration.isFrozen()) {
Configuration.set("writer1", "console");
Configuration.set("writer1.level", "trace");
Configuration.set("writer1.format", "[{thread}] {level}: <TEST> {message}");
}
}
// If you want to complete this test, go ahead. It's slightly complicated, but if you understand this test,
// you should also understand the server, which serves as a good intro to it. You can - of course - also
// just ignore it.
@Test
void main() {
UserManager m = UserManager.getInstance();