test: refactor test-fs-read-stream-inherit
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test fs
Description of change
Refactor to take advantage of block scoping to isolate tests. Checks in exit handlers now reside with the relevant test block. Where test cases start and end is more clear.
Also: Some use of common.mustCall()
and improved wrapping/indentation.