You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestClientAndConnectionError/* in aibridge/internal/integrationtest/responses_test.go
Error Output
=== FAIL: aibridge/internal/integrationtest TestClientAndConnectionError/streaming_connection_refused (0.00s)
Error: "Post \"http://127.0.0.1:49942/responses\": read tcp 127.0.0.1:50598->127.0.0.1:49942: wsarecv: An existing connection was forcibly closed by the remote host." does not contain "connection reset by peer"
=== FAIL: aibridge/internal/integrationtest TestClientAndConnectionError/blocking_connection_refused (0.00s)
Error: "Post \"http://127.0.0.1:49941/responses\": read tcp 127.0.0.1:50600->127.0.0.1:49941: wsarecv: An existing connection was forcibly closed by the remote host." does not contain "connection reset by peer"
Error Analysis
The test hardcodes errContains: "connection reset by peer" for both streaming and blocking cases (around line ~611). On Windows, the TCP reset error string is wsarecv: An existing connection was forcibly closed by the remote host, so the assertion fails.
No data-race warnings, panics, or OOM indicators were observed in the failing log tail.
Root Cause Assessment
OS-specific error message mismatch. The test expects a Unix error string that doesn't appear on Windows. Accepting platform-specific variants or matching on a more stable error class would fix this.
Activity
pawbana commentedon Apr 27, 2026
Fixed in: coder/coder#24665