Repository navigation
Commit 0ecaa63
committed
test: pin socket highWaterMark in chunked drain test
The default stream highWaterMark is 16 KiB on Windows and 64 KiB
elsewhere. With the smaller value the fake socket exceeds its own
highWaterMark in UTF-16 code units and emits 'drain' by itself before
the write callback destroys the response, which trips mustNotCall().
Pin the highWaterMark so the payload sizes stay on the intended side of
it on every platform, and assert that the socket never drains on its
own in the destroy scenario.
Refs: #66782 (comment)
Assisted-by: AI coding agent
Signed-off-by: junyup0503 <[email protected]>1 parent 3f263a8 commit 0ecaa63
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
0 commit comments