test: replace assert.throws with common.expectsError
Refactored tests to replace assert.throws(fn, common.expectsError(err));
with common.expectsError(fn, err);
in following test files :
- test/parallel/test-dgram-createSocket-type.js
- test/parallel/test-dgram-custom-lookup.js
- test/parallel/test-dgram-membership.js
- test/parallel/test-dgram-multicast-setTTL.js
- test/parallel/test-dgram-sendto.js
- test/parallel/test-dgram-setTTL.js
- test/parallel/test-dgram-socket-buffer-size.js
- test/parallel/test-dns-lookup.js
- test/parallel/test-dns-regress-7070.js
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test