Skip to content

test: update coverage for dgram.js

Create test-dgram-multicast-loopback.js for dgram.setMulticastLoopback. Add a test which has an argument of an invalid number to test-dgram-setTTL.js. https://github.com/nodejs/node/blob/master/lib/dgram.js#L464 Add a test which has an argument of a string to test-dgram-multicast-setTTL.js. https://github.com/nodejs/node/blob/master/lib/dgram.js#L473

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Merge request reports

Loading