Files
coder/testutil
Zach 6832ca3cd9 fix(testutil): use dedicated http.Client in OAuth2Config (#25407)
http.DefaultTransport is shared with httptest.Server, which calls
CloseIdleConnections on it during Close. Parallel subtests sharing this
transport could see their in-flight requests broken with 'net/http:
HTTP/1.x transport connection broken: http: CloseIdleConnections
called'. Most visibly this flaked TestExternalAuthCallback/ValidateURL.

Lazily create a dedicated http.Client per OAuth2Config so its idle
connection pool is not affected by unrelated httptest.Server.Close
calls.

Generated with assistance from Coder Agents.
2026-05-19 08:01:05 -06:00
..
2023-02-02 12:36:27 -06:00