mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
chore: fix monitoring goroutine leak in tests (#3500)
Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>
This commit is contained in:
@@ -959,6 +959,8 @@ func TestCookiestoreCleanup(t *testing.T) {
|
||||
log := log.NewTestLogger()
|
||||
metrics := monitoring.NewMetricsServer(true, log)
|
||||
|
||||
defer metrics.Stop() // Clean up metrics server to prevent resource leaks
|
||||
|
||||
authCfgTestCases := []struct {
|
||||
name string
|
||||
cfg config.AuthConfig
|
||||
|
||||
Reference in New Issue
Block a user