test(security): seed expired key as UTC in direct auth test
Tests / Race Detector (push) Failing after 27s
Tests / Unit Tests (push) Failing after 29s
Tests / Integration Tests (push) Failing after 30s
Build , Vet Test, and Lint / Build (push) Successful in 1m14s
Build , Vet Test, and Lint / Lint Code (push) Successful in 1m32s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in 1m42s
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in 1m40s

This commit is contained in:
Hein
2026-10-01 13:24:38 +02:00
parent ea6a2e705f
commit 7662d5055c
+1 -1
View File
@@ -166,7 +166,7 @@ func TestLoginAPIKey(t *testing.T) {
insert("generic", "api", 1, nil)
insert("jwt", "jwt_secret", 1, nil)
insert("off", "api", 0, nil)
insert("old", "api", 1, time.Now().Add(-time.Hour))
insert("old", "api", 1, time.Now().UTC().Add(-time.Hour))
for _, k := range []string{"good", "generic"} {
resp, err := a.LoginAPIKey(ctx, k, map[string]any{"ip_address": "9.9.9.9"})