Repository navigation
Commit a467781
committed
test(core): pin the already-ended input path with a stream that finished
The first version of this test destroyed the stream, which reaches the
cancel through the `close` event and therefore passed with the
`readableEnded` check removed. A stream that ended before the prompt
attached does not emit `end` again, which is the case the check exists
for: the test now builds it with a finished `Readable` and asserts
`readableEnded` first.1 parent 8f67778 commit a467781
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
496 | 497 | | |
497 | 498 | | |
498 | 499 | | |
499 | | - | |
500 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
501 | 510 | | |
502 | 511 | | |
503 | 512 | | |
| |||
0 commit comments