diff options
author | Roman Reiss <me@silverwind.io> | 2015-05-19 13:00:06 +0200 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2015-05-19 21:21:27 +0200 |
commit | f29762f4dd5811464684f820286f1c90a694bdff (patch) | |
tree | 67ba73a81c3938f41796dfa4c595f9713de59933 /test/internet/test-dgram-broadcast-multi-process.js | |
parent | 85d99830096a48b7d50cc3b0e5c3fba4172c2d02 (diff) | |
download | android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.tar.gz android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.tar.bz2 android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.zip |
test: enable linting for tests
Enable linting for the test directory. A number of changes was made so
all tests conform the current rules used by lib and src directories. The
only exception for tests is that unreachable (dead) code is allowed.
test-fs-non-number-arguments-throw had to be excluded from the changes
because of a weird issue on Windows CI.
PR-URL: https://github.com/nodejs/io.js/pull/1721
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/internet/test-dgram-broadcast-multi-process.js')
-rw-r--r-- | test/internet/test-dgram-broadcast-multi-process.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/internet/test-dgram-broadcast-multi-process.js b/test/internet/test-dgram-broadcast-multi-process.js index d60fb0bd34..4cf5d7226f 100644 --- a/test/internet/test-dgram-broadcast-multi-process.js +++ b/test/internet/test-dgram-broadcast-multi-process.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common'), assert = require('assert'), dgram = require('dgram'), @@ -144,7 +145,7 @@ if (process.argv[2] !== 'child') { // bind the address explicitly for sending // INADDR_BROADCAST to only one interface sendSocket.bind(common.PORT, bindAddress); - sendSocket.on('listening', function () { + sendSocket.on('listening', function() { sendSocket.setBroadcast(true); }); @@ -162,9 +163,7 @@ if (process.argv[2] !== 'child') { sendSocket.send(buf, 0, buf.length, common.PORT, LOCAL_BROADCAST_HOST, function(err) { - if (err) throw err; - console.error('[PARENT] sent %s to %s:%s', util.inspect(buf.toString()), LOCAL_BROADCAST_HOST, common.PORT); |