Skip to content

Commit 677e5a5

Browse files
committed
Use ts.URL instead of u.String()
1 parent f259b79 commit 677e5a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

request_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,14 +333,14 @@ func TestDoWithCustomClient(t *testing.T) {
333333
w.WriteHeader(http.StatusOK)
334334
}))
335335

336-
u, err := url.Parse(ts.URL)
337-
require.NoError(t, err)
338336
params := Params{
339-
URL: u.String(),
337+
URL: ts.URL,
340338
}
341339
err = DoWithCustomClient(params, nil, customClient)
342340
require.NoError(t, err)
343341

342+
u, err := url.Parse(ts.URL)
343+
require.NoError(t, err)
344344
require.Equal(t, "foo=bar", jar.Cookies(u)[0].String())
345345
}
346346

0 commit comments

Comments
 (0)