mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-15 04:18:03 +00:00
fixup! fixup! fixup! Weekend fun with further optimisations.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user