From 7d1b37d70a236e8fc3e8faac2dfaf3e84679e0a6 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Mon, 19 May 2025 18:24:48 +0300 Subject: [PATCH] Pull request 2412: AGDNS-2743-auth-fix-tests Merge in DNS/adguard-home from AGDNS-2743-auth-fix-tests to master Squashed commit of the following: commit 954dce8d39c0bf8c03cf3e5fea7b6c6719ff28ac Author: Stanislav Chzhen Date: Mon May 19 17:43:02 2025 +0300 home: auth fix tests --- internal/home/authhttp_internal_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/home/authhttp_internal_test.go b/internal/home/authhttp_internal_test.go index ddd649b0..c7bea784 100644 --- a/internal/home/authhttp_internal_test.go +++ b/internal/home/authhttp_internal_test.go @@ -165,6 +165,7 @@ func TestAuth_ServeHTTP_auth(t *testing.T) { PasswordHash: string(passwordHash), }} auth := InitAuth(sessionsDB, users, testTTL, nil, nil) + t.Cleanup(auth.Close) globalContext.auth = auth mux := http.NewServeMux() @@ -297,6 +298,7 @@ func TestAuth_ServeHTTP_logout(t *testing.T) { PasswordHash: string(passwordHash), }} auth := InitAuth(sessionsDB, users, testTTL, nil, nil) + t.Cleanup(auth.Close) globalContext.auth = auth mux := http.NewServeMux()