mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-10-01 12:31:59 +00:00
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
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:
@@ -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"})
|
||||
|
||||
Reference in New Issue
Block a user