Skip to content

Commit a4bbc80

Browse files
committed
Linting
1 parent f2e615d commit a4bbc80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/coderd_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func TestCSRFExempt(t *testing.T) {
358358
}).
359359
Do()
360360

361-
u := fmt.Sprintf(client.URL.JoinPath(fmt.Sprintf("/@%s/%s.%s/apps/%s", owner.Username, wrk.Workspace.Name, agentSlug, appSlug)).String())
361+
u := client.URL.JoinPath(fmt.Sprintf("/@%s/%s.%s/apps/%s", owner.Username, wrk.Workspace.Name, agentSlug, appSlug)).String()
362362
req, err := http.NewRequestWithContext(ctx, http.MethodPost, u, nil)
363363
req.AddCookie(&http.Cookie{
364364
Name: codersdk.SessionTokenCookie,
@@ -371,6 +371,7 @@ func TestCSRFExempt(t *testing.T) {
371371
resp, err := client.HTTPClient.Do(req)
372372
require.NoError(t, err)
373373
data, _ := io.ReadAll(resp.Body)
374+
_ = resp.Body.Close()
374375

375376
// A StatusBadGateway means Coderd tried to proxy to the agent and failed because the agent
376377
// was not there. This means CSRF did not block the app request, which is what we want.

0 commit comments

Comments
 (0)