Commit c0acd73
committed
test: fix flaky test-http2-close-while-writing
Use stream.once() instead of stream.on() for the 'data' event
handler to prevent multiple calls when receiving large data chunks.
The test sends 64KB of data which may arrive in multiple chunks,
causing the destroy callback to fire multiple times and leading
to intermittent timeouts on macOS.
Refs: nodejs/reliability#14591 parent 4fca20c commit c0acd73
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments