Commit 1da0ec6
fix(e2e): drain fetch response bodies in CSP nonce step
Under Node's fetch/undici, an un-drained response body keeps the
socket open and can leave open-handles after the test exits. The
nonce-freshness check added a second fetch (and a 404-fallback
third) without consuming either body. Drain each response via
.text() before moving on, matching the pattern in captureGet().
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 2ceaded commit 1da0ec6
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
215 | 219 | | |
216 | 220 | | |
| 221 | + | |
217 | 222 | | |
218 | 223 | | |
| 224 | + | |
219 | 225 | | |
220 | 226 | | |
221 | 227 | | |
| |||
0 commit comments