Mathias Fredriksson
82752844bc
fix: isolate MCP HTTP transports from DefaultTransport in tests ( #25821 )
...
Use testing.Testing() inside createTransport to automatically
clone http.DefaultTransport when running in tests. In production,
DefaultTransport is used as-is (efficient connection pooling).
This fixes the CloseIdleConnections flake class: httptest.Server.Close()
calls http.DefaultTransport.CloseIdleConnections(), which disrupts
any MCP client sharing that transport. The testing.Testing() check
means every MCP transport created during tests gets isolation
automatically, with no caller changes needed.
Closes coder/internal#1016
Closes PLAT-291
2026-06-01 16:17:29 +03:00
..
2026-05-19 17:57:14 +02:00
2026-03-23 17:34:43 +00:00
2026-05-22 20:24:38 +10:00
2026-05-29 13:14:04 +01:00
2026-06-01 12:42:09 +03:00
2026-05-04 20:30:50 +02:00
2026-05-21 08:12:34 +00:00
2026-05-28 10:27:32 +02:00
2026-05-08 15:52:42 +10:00
2026-05-20 01:28:02 +10:00
2026-05-04 11:17:19 +02:00
2026-05-26 11:11:47 +03:00
2026-05-04 11:17:19 +02:00
2026-03-30 11:43:59 +00:00
2026-06-01 16:17:29 +03:00
2026-05-26 19:31:52 +00:00
2026-05-22 20:24:38 +10:00
2026-05-18 12:30:30 -04:00
2026-05-26 19:31:52 +00:00
2026-05-27 17:00:23 +01:00
2026-05-26 19:31:52 +00:00
2026-05-27 17:00:23 +01:00
2026-05-08 02:07:33 +10:00
2026-05-26 19:31:52 +00:00
2026-05-22 20:24:38 +10:00
2026-05-22 09:50:01 +02:00
2026-04-09 16:33:00 +02:00
2026-05-22 20:24:38 +10:00
2026-03-27 18:47:39 +11:00
2026-05-20 01:37:38 +02:00
2026-04-08 11:54:44 -04:00
2026-04-08 11:54:44 -04:00
2026-05-12 22:13:55 +10:00
2026-05-22 14:08:07 +00:00
2026-04-09 16:33:00 +02:00
2026-05-12 14:50:30 +02:00
2026-05-22 07:53:23 +02:00
2026-05-28 15:50:52 +01:00
2026-05-26 19:31:52 +00:00
2026-05-28 15:50:52 +01:00
2026-05-26 19:31:52 +00:00
2026-05-05 00:57:51 +02:00
2026-05-05 00:57:51 +02:00
2026-05-22 14:08:07 +00:00
2026-05-28 10:27:32 +02:00
2026-05-26 19:31:52 +00:00
2026-05-01 13:29:33 +01:00
2026-04-22 20:11:53 +10:00
2026-03-25 14:09:24 +00:00
2026-03-25 14:09:24 +00:00
2026-05-22 20:24:38 +10:00
2026-04-22 20:11:53 +10:00
2026-05-11 17:27:03 -04:00
2026-05-22 02:17:09 +02:00
2026-05-27 17:00:23 +01:00
2026-05-26 19:31:52 +00:00
2026-05-01 13:29:33 +01:00
2026-05-27 17:00:23 +01:00
2026-05-21 10:35:41 +03:00
2026-05-12 22:13:55 +10:00
2026-05-27 13:20:36 +01:00
2026-05-26 19:31:52 +00:00
2026-05-22 09:50:01 +02:00
2026-05-22 20:24:38 +10:00
2026-04-14 16:56:17 +01:00