Browse Source

Small test-dgram-multicast-multi-process fixes

Somehow windows doesn't want to bind to 224.0.0.1. Let's test with a multicast
address that has no special meaning.
v0.7.4-release
Bert Belder 13 years ago
parent
commit
0ad2a9a2e0
  1. 6
      test/simple/test-dgram-multicast-multi-process.js

6
test/simple/test-dgram-multicast-multi-process.js

@ -26,7 +26,7 @@ var common = require('../common'),
assert = require('assert'),
Buffer = require('buffer').Buffer,
fork = require('child_process').fork,
LOCAL_BROADCAST_HOST = '224.0.0.1',
LOCAL_BROADCAST_HOST = '224.0.0.114',
TIMEOUT = 5000,
messages = [
new Buffer('First message to send'),
@ -153,8 +153,8 @@ if (process.argv[2] !== 'child') {
sendSocket.send(buf, 0, buf.length,
common.PORT, LOCAL_BROADCAST_HOST, function(err) {
if (err) throw err;
console.error('sent %s to %s', util.inspect(buf.toString()),
LOCAL_BROADCAST_HOST + common.PORT);
console.error('sent %s to %s:%s', util.inspect(buf.toString()),
LOCAL_BROADCAST_HOST, common.PORT);
process.nextTick(sendSocket.sendNext);
});
};

Loading…
Cancel
Save