chore: use testing.Context (#25686)
This commit is contained in:
parent
9d523fdaf5
commit
312b838db3
15 changed files with 29 additions and 46 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue