test: refactor test-net-dns-error
- Use
common.mustCall()
andcommon.mustNotCall()
. - Use ternary operator.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
common.mustCall()
and common.mustNotCall()
.make -j4 test
(UNIX), or vcbuild test
(Windows) passes