From 7662d5055cad2473a2728222fcad324068b0bd37 Mon Sep 17 00:00:00 2001 From: Hein Date: Thu, 1 Oct 2026 13:24:38 +0200 Subject: [PATCH] test(security): seed expired key as UTC in direct auth test --- pkg/security/lookup/direct/auth_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/security/lookup/direct/auth_test.go b/pkg/security/lookup/direct/auth_test.go index c5bd38a..1d62d91 100644 --- a/pkg/security/lookup/direct/auth_test.go +++ b/pkg/security/lookup/direct/auth_test.go @@ -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"})