From 045f765a1ac0632f90be0de3bf9630422aeee249 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Thu, 10 Apr 2014 19:55:38 +0400 Subject: [PATCH] test: add `reuseAddr` in dgram-multicast... Add `reuseAddr` option in `test-dgram-multicast-multi-process.js` --- test/internet/test-dgram-multicast-multi-process.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/internet/test-dgram-multicast-multi-process.js b/test/internet/test-dgram-multicast-multi-process.js index 86fd7d7053..267a801064 100644 --- a/test/internet/test-dgram-multicast-multi-process.js +++ b/test/internet/test-dgram-multicast-multi-process.js @@ -189,7 +189,10 @@ if (process.argv[2] !== 'child') { if (process.argv[2] === 'child') { var receivedMessages = []; - var listenSocket = dgram.createSocket('udp4'); + var listenSocket = dgram.createSocket({ + type: 'udp4', + reuseAddr: true + }); listenSocket.on('message', function(buf, rinfo) { console.error('[CHILD] %s received %s from %j', process.pid,