Commit 9a31b5b
committed
fix: add missing return after exitWithNoMatchingRequestError in CI mode
When running tests in CI mode with no cached response, the proxy would
crash with ERR_HTTP_HEADERS_SENT because exitWithNoMatchingRequestError()
calls onError() (which writes headers), but then execution continued to
super.performRequest() which also tries to write headers.
This caused cascading test failures because the proxy process would die
and subsequent tests couldn't communicate with it.
This is why the 'sendAndWait throws on timeout' test is currently
skipped in CI. With this fix, that test could potentially be enabled.1 parent 73c1431 commit 9a31b5b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
0 commit comments