chore: use testing.Context (#25686)

This commit is contained in:
andig 2025-11-29 15:06:52 +01:00 • committed by GitHub
parent 9d523fdaf5
commit 312b838db3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 29 additions and 46 deletions

View file

@ -1,7 +1,6 @@
package auth
import (
"context"
"testing"
"github.com/stretchr/testify/require"
@ -15,7 +14,7 @@ func TestOAuth(t *testing.T) {
return t
}
ts, err := NewOAuth(context.TODO(), "foo", "bar", &oauth2.Config{
ts, err := NewOAuth(t.Context(), "foo", "bar", &oauth2.Config{
ClientID: "baz",
}, WithTokenStorerOption(storer))
require.NoError(t, err)