test: refactor test-http-response-splitting
- move repeated code to function
- remove unneeded
common.mustCall()
usage with function arguments that are not callbacks - add error message checking
like #11274.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test http