test: add missing assert.throws()
This commit replaces a try...catch
in test/parallel/test-dgram-multicast-set-interface.js
with assert.throws()
. The existing implementation wasn't actually verifying that a synchronous exception is thrown.
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