diff options
Diffstat (limited to 'test/simple/test-net-localerror.js')
-rw-r--r-- | test/simple/test-net-localerror.js | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/test/simple/test-net-localerror.js b/test/simple/test-net-localerror.js index d04d9c707..cf113d499 100644 --- a/test/simple/test-net-localerror.js +++ b/test/simple/test-net-localerror.js @@ -23,27 +23,17 @@ var common = require('../common'); var assert = require('assert'); var net = require('net'); - connect({ - host: 'localhost', - port: common.PORT, - localPort: 'foobar', - }, 'localPort should be a number: foobar'); +connect({ + host: 'localhost', + port: common.PORT, + localPort: 'foobar', +}, 'localPort should be a number: foobar'); - connect({ - host: 'localhost', - port: common.PORT, - localAddress: 'foobar', - }, 'localAddress should be a valid IP: foobar'); - - connect({ - host: 'localhost', - port: 65536 - }, 'port should be > 0 and < 65536: 65536'); - - connect({ - host: 'localhost', - port: 0 - }, 'port should be > 0 and < 65536: 0'); +connect({ + host: 'localhost', + port: common.PORT, + localAddress: 'foobar', +}, 'localAddress should be a valid IP: foobar'); function connect(opts, msg) { assert.throws(function() { |