Don't run GC collect in startup in integration tests.

Oof.
This commit is contained in:
Pieter-Jan Briers
2022-12-09 21:22:10 +01:00
parent c2de890441
commit e71cab167b
4 changed files with 18 additions and 3 deletions

View File

@@ -160,8 +160,11 @@ namespace Robust.Client
_authManager.LoadFromEnv();
GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce;
GC.Collect();
if (_configurationManager.GetCVar(CVars.SysGCCollectStart))
{
GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce;
GC.Collect();
}
// Setup main loop
if (_mainLoop == null)