0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-25 08:19:38 +01:00
nodejs/test/parallel/test-net-better-error-messages-path.js
Fedor Indutny 0e19476595 test: split test in parallel/sequential
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
PR-URL: https://github.com/iojs/io.js/pull/172
Fix: iojs/io.js#139
2014-12-17 20:45:02 +07:00

13 lines
316 B
JavaScript

var common = require('../common');
var net = require('net');
var assert = require('assert');
var fp = '/tmp/fadagagsdfgsdf';
var c = net.connect(fp);
c.on('connect', assert.fail);
c.on('error', common.mustCall(function(e) {
assert.equal(e.code, 'ENOENT');
assert.equal(e.message, 'connect ENOENT ' + fp);
}));