mirror of https://github.com/lukechilds/node.git
Johan Euphrosine
14 years ago
committed by
Ryan Dahl
2 changed files with 21 additions and 4 deletions
@ -0,0 +1,14 @@ |
|||
common = require('../common'); |
|||
assert = common.assert |
|||
net = require('net'); |
|||
|
|||
var server1 = net.createServer(function (socket) { |
|||
}); |
|||
var server2 = net.createServer(function (socket) { |
|||
}); |
|||
server1.listen(31337); |
|||
server2.addListener('error', function(error) { |
|||
assert.equal(true, error.message.indexOf('EADDRINUSE') >= 0); |
|||
server1.close(); |
|||
}); |
|||
server2.listen(31337); |
Loading…
Reference in new issue