|
26 | 26 | testSigningKey = []byte(`Test`) |
27 | 27 | ) |
28 | 28 |
|
29 | | -const testBearerToken = "eyJhbGciOiJub25lIn0.eyJleHAiOjIxNDc0ODM2NDd9." |
| 29 | +const testBearerToken = "eyJhbGciOiJub25lIn0.eyJleHAiOjIxNDc0ODM2NDd9." //nolint:gosec // linter false positive |
30 | 30 |
|
31 | 31 | func fixtureServiceAccountKey(mods ...func(*ServiceAccountKeyResponse)) *ServiceAccountKeyResponse { |
32 | 32 | validUntil := time.Now().Add(time.Hour) |
@@ -345,7 +345,7 @@ func TestKeyFlow_Do(t *testing.T) { |
345 | 345 | name: "success with code 500", |
346 | 346 | keyFlow: &KeyFlow{rt: http.DefaultTransport, config: &KeyFlowConfig{}}, |
347 | 347 | handlerFn: func(_ testing.TB) http.HandlerFunc { |
348 | | - return func(w http.ResponseWriter, r *http.Request) { |
| 348 | + return func(w http.ResponseWriter, _ *http.Request) { |
349 | 349 | w.Header().Set("Content-Type", "text/html") |
350 | 350 | w.WriteHeader(http.StatusInternalServerError) |
351 | 351 | _, _ = fmt.Fprintln(w, `<html>Internal Server Error</html>`) |
@@ -405,7 +405,6 @@ func TestKeyFlow_Do(t *testing.T) { |
405 | 405 | } |
406 | 406 | for _, tt := range tests { |
407 | 407 | t.Run(tt.name, func(t *testing.T) { |
408 | | - |
409 | 408 | ctx := context.Background() |
410 | 409 | ctx, cancel := context.WithCancel(ctx) |
411 | 410 | t.Cleanup(cancel) // This cancels the refresher goroutine |
|
0 commit comments