Suppress SharedMapSystem info logs in tests (#40592)

* Supress informational `SharedMapSystem` logs in tests

* Why is the client like this
This commit is contained in:
Leon Friedrich
2025-10-04 00:23:04 +13:00
committed by GitHub
parent 46960c0315
commit d07527404c

View File

@@ -27,6 +27,16 @@ public sealed partial class TestPair : RobustIntegrationTest.TestPair
protected override async Task Initialize() 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; var settings = (PoolSettings)Settings;
if (!settings.DummyTicker) if (!settings.DummyTicker)
{ {