Suppress SharedMapSystem info logs in tests (#40592)
* Supress informational `SharedMapSystem` logs in tests * Why is the client like this
This commit is contained in:
@@ -27,6 +27,16 @@ public sealed partial class TestPair : RobustIntegrationTest.TestPair
|
||||
|
||||
protected override async Task Initialize()
|
||||
{
|
||||
await base.Initialize();
|
||||
|
||||
// Prevent info log spam in some tests (particularly SpawnAndDeleteAllEntitiesOnDifferentMaps)
|
||||
Server.System<SharedMapSystem>().Log.Level = LogLevel.Warning;
|
||||
Client.EntMan.EntitySysManager.SystemLoaded += (_, e) =>
|
||||
{
|
||||
if (e.System is SharedMapSystem map)
|
||||
map.Log.Level = LogLevel.Warning;
|
||||
};
|
||||
|
||||
var settings = (PoolSettings)Settings;
|
||||
if (!settings.DummyTicker)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user