mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
316 B
13 lines
316 B
10 years ago
|
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);
|
||
|
}));
|