Skip to content

Commit

Permalink
test: don't skip when common.mustCall() is pending
Browse files Browse the repository at this point in the history
The test parallel/test-dgram-multicast-set-interface.js was
calling common.skip() on hosts that do not support IPv6. However,
by this point, there were several outstanding common.mustCall()
invocations. The process.exit() in common.skip() triggered
those common.mustCall()s as errors.

Fixes: nodejs/node#15419
PR-URL: nodejs/node#15421
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Brian White <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
  • Loading branch information
cjihrig authored and Stephen Belanger committed Sep 21, 2017
1 parent b2fed41 commit eeedd77
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/parallel/test-dgram-multicast-set-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,11 @@ const dgram = require('dgram');
}));
}

<<<<<<< HEAD
// If IPv6 is not supported, skip the rest of the test. However, don't call
// common.skip(), which calls process.exit() while there is outstanding
// common.mustCall() activity.
if (!common.hasIPv6)
return;
=======
if (!common.hasIPv6) {
common.skip('Skipping udp6 tests, no IPv6 support.');
return;
}
>>>>>>> 4ae0afb12b... dgram: added setMulticastInterface()

{
const socket = dgram.createSocket('udp6');
Expand Down

0 comments on commit eeedd77

Please sign in to comment.