mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-14 04:07:46 +00:00
Pre-release cleanup.
This commit is contained in:
@@ -141,3 +141,13 @@ func (m *UniversalCacheManager) Close() error {
|
||||
m.logger.Info("UniversalCacheManager: Closed all caches")
|
||||
return nil
|
||||
}
|
||||
|
||||
// ResetUniversalCacheManagerForTesting resets the singleton for testing purposes only
|
||||
// This should only be called in test code to ensure proper cleanup between tests
|
||||
func ResetUniversalCacheManagerForTesting() {
|
||||
if universalCacheManager != nil {
|
||||
universalCacheManager.Close()
|
||||
}
|
||||
universalCacheManagerOnce = sync.Once{}
|
||||
universalCacheManager = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user