Commit c820334
authored
test(agent): fix dead double-send in handleTraceRequest (#7725)
When the test agent returned a non-200 status, handleTraceRequest
attempted to call res.status(400).send() — but res.status(200).send()
had already been called synchronously earlier in the same function, so
the error response was silently dropped. Replace with a console.warn
so test agent errors are visible in CI logs instead of swallowed.
The res._closed guard is also removed since it only existed to protect
the now-removed res.status(400) call.1 parent d35deec commit c820334
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | 203 | | |
209 | 204 | | |
210 | 205 | | |
211 | 206 | | |
212 | 207 | | |
213 | 208 | | |
214 | 209 | | |
215 | | - | |
| 210 | + | |
| 211 | + | |
216 | 212 | | |
217 | 213 | | |
218 | 214 | | |
| |||
0 commit comments