Small test-dgram-multicast-multi-process fixes
authorBert Belder <bertbelder@gmail.com>
Tue, 31 Jan 2012 15:46:14 +0000 (16:46 +0100)
committerBert Belder <bertbelder@gmail.com>
Tue, 31 Jan 2012 15:46:14 +0000 (16:46 +0100)
Somehow windows doesn't want to bind to 224.0.0.1. Let's test with a multicast
address that has no special meaning.

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

index 03e07de..35ade38 100644 (file)
@@ -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);
     });
   };