test: refactor test-fs-assert-encoding-error
Check that callbacks are not executed when errors are expected to be thrown.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test fs