Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: revert fix test-net-* error code check
This reverts commit 0414d88.

This is a super weird one. This commit landed with no problems with the
test suite. CI tested absolutely fine multiple times. As of June 30
2016 the test suite is now reliably failing on `test-net-*`.
This is extremely odd to be coming up after the release and multiple
test runs.

Weirdness aside, the revert brings the test suite back to a reliable
state. This may cause problems for testing on Alpine, this will need
to be revisited.
  • Loading branch information
Myles Borins committed Jun 30, 2016
commit 0bc61b140f554fd631e5d37d3a8cde82ef75cddf
4 changes: 2 additions & 2 deletions test/parallel/test-net-better-error-messages-port-hostname.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ var common = require('../common');
var net = require('net');
var assert = require('assert');

var c = net.createConnection(common.PORT, '***');
var c = net.createConnection(common.PORT, '...');

c.on('connect', common.fail);

c.on('error', common.mustCall(function(e) {
assert.equal(e.code, 'ENOTFOUND');
assert.equal(e.port, common.PORT);
assert.equal(e.hostname, '***');
assert.equal(e.hostname, '...');
}));
4 changes: 2 additions & 2 deletions test/parallel/test-net-connect-immediate-finish.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ const common = require('../common');
const assert = require('assert');
const net = require('net');

const client = net.connect({host: '***', port: common.PORT});
const client = net.connect({host: '...', port: common.PORT});

client.once('error', common.mustCall(function(err) {
assert(err);
assert.strictEqual(err.code, err.errno);
assert.strictEqual(err.code, 'ENOTFOUND');
assert.strictEqual(err.host, err.hostname);
assert.strictEqual(err.host, '***');
assert.strictEqual(err.host, '...');
assert.strictEqual(err.syscall, 'getaddrinfo');
}));

Expand Down