mirror of
https://git.vectorsigma.ru/public/AdGuardHome.git
synced 2026-08-03 20:49:21 +00:00
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 <s.chzhen@adguard.com> Date: Mon May 19 17:43:02 2025 +0300 home: auth fix tests
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user