Skip to content

test: increase coverage of internal/stream/end-of-stream

The Stream.finished function returns a function that should detach all the listeners from the wrapped stream which isn't covered by existed test cases.

This change adds test cases to call the function returned by Stream.finished and asserts that callbacks are not called when the stream is ended, or prematurely closed.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading