Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update network error test

  • Loading branch information...
commit 8451599a12a573292775afaefd68f97b161e62a3 1 parent 4b0a68b
Sven Pfleiderer authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 test/wwwdude-networkerrors.js
8 test/wwwdude-networkerrors.js
@@ -16,7 +16,7 @@ function _testClientErrs(beforeExit, toCompare, url) {
16 16 .on('error', function (err) {
17 17 callbacks += 1;
18 18 assert.ok(err);
19   - assert.strictEqual(err.message, toCompare);
  19 + assert.strictEqual(err.code, toCompare);
20 20 })
21 21 .on('complete', function () {
22 22 callbacks += 1;
@@ -29,13 +29,13 @@ function _testClientErrs(beforeExit, toCompare, url) {
29 29 }
30 30
31 31 exports.networkConnRefused = function (beforeExit) {
32   - _testClientErrs(beforeExit, 'ECONNREFUSED, Connection refused', 'http://localhost:63424');
  32 + _testClientErrs(beforeExit, 'ECONNREFUSED', 'http://localhost:63424');
33 33 };
34 34
35 35 exports.networkHostNotReachable = function (beforeExit) {
36   - _testClientErrs(beforeExit, 'ETIMEDOUT, Operation timed out', 'http://127.0.22.32:63424');
  36 + _testClientErrs(beforeExit, 'ETIMEDOUT', 'http://127.0.22.32:63424');
37 37 };
38 38
39 39 exports.networkDomainNotFound = function (beforeExit) {
40   - _testClientErrs(beforeExit, 'ENOTFOUND, Domain name not found', 'http://wrong.tld.foo.bar:63424');
  40 + _testClientErrs(beforeExit, 'ENOTFOUND', 'http://wrong.tld.foo.bar:63424');
41 41 };

0 comments on commit 8451599

Please sign in to comment.
Something went wrong with that request. Please try again.