chore: fix monitoring goroutine leak in tests (#3500)

Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>
This commit is contained in:
Andrei Aaron
2025-10-31 13:55:43 +02:00
committed by GitHub
parent a0943eccfe
commit 79ddc32b7c
6 changed files with 15 additions and 0 deletions
+2
View File
@@ -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