fixup! fixup! fixup! Weekend fun with further optimisations.

This commit is contained in:
2025-09-14 18:28:32 +01:00
parent 9af8939f72
commit f411273fa2
10 changed files with 261 additions and 62 deletions
+4
View File
@@ -110,6 +110,10 @@ func (g *GlobalTestCleanup) CleanupAll() {
runtime.GC() // Force GC to help clean up
}
// Reset all global singletons to prevent state pollution between tests
ResetGlobalMemoryMonitor()
ResetGlobalTaskRegistry()
// Give background tasks time to finish cleanup
time.Sleep(100 * time.Millisecond)
runtime.GC()