Browse Source

Fix test on dns error message

http2
Vsevolod Strukchinsky 10 years ago
parent
commit
3f215fc80d
  1. 2
      test/test-error.js

2
test/test-error.js

@ -28,7 +28,7 @@ tape('dns error message', function (t) {
t.ok(err); t.ok(err);
t.equal(err.message, 'Request to .com failed'); t.equal(err.message, 'Request to .com failed');
t.ok(err.nested); t.ok(err.nested);
t.equal(err.nested.message, 'getaddrinfo ENOTFOUND'); t.ok(/getaddrinfo ENOTFOUND/.test(err.nested.message));
t.end(); t.end();
}); });
}); });

Loading…
Cancel
Save