Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
vijfhoek committed Jan 10, 2023
1 parent ba0f797 commit b534c90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clientapi/auth/login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var cfg = &config.ClientAPI{
},
}

func genHTTPRequest(body string, token string) (*http.Request, error) {
func genHTTPRequest(ctx context.Context, body string, token string) (*http.Request, error) {
req, err := http.NewRequestWithContext(ctx, "POST", "", strings.NewReader(body))
if err != nil {
return nil, err
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestLoginFromJSONReader(t *testing.T) {
t.Run(tst.Name, func(t *testing.T) {
var userAPI fakeUserInternalAPI

req, err := genHTTPRequest(tst.Body, tst.Token)
req, err := genHTTPRequest(ctx, tst.Body, tst.Token)
if err != nil {
t.Fatalf("genHTTPRequest failed: %v", err)
}
Expand Down Expand Up @@ -249,7 +249,7 @@ func TestBadLoginFromJSONReader(t *testing.T) {
t.Run(tst.Name, func(t *testing.T) {
var userAPI fakeUserInternalAPI

req, err := genHTTPRequest(tst.Body, tst.Token)
req, err := genHTTPRequest(ctx, tst.Body, tst.Token)
if err != nil {
t.Fatalf("genHTTPRequest failed: %v", err)
}
Expand Down

0 comments on commit b534c90

Please sign in to comment.