blob: 7cdc14b9bd4333e5e6797a667ccedd3fbe63e887 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
'use strict';
const common = require('../common');
const net = require('net');
const assert = require('assert');
const fp = '/tmp/fadagagsdfgsdf';
const c = net.connect(fp);
c.on('connect', common.fail);
c.on('error', common.mustCall(function(e) {
assert.strictEqual(e.code, 'ENOENT');
assert.strictEqual(e.message, 'connect ENOENT ' + fp);
}));
|