diff options
author | Dan Milon <danmilon@gmail.com> | 2013-01-18 02:40:48 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-01-18 12:13:32 +0100 |
commit | 7295bb9435c10fe569d36e64d50769fed4b5d7e3 (patch) | |
tree | 44f060328520b64d4a2800049b3eacafd429b7ea /test/internet | |
parent | 31583be04218c49d91440a58969dbfc4f5f7b472 (diff) | |
download | node-new-7295bb9435c10fe569d36e64d50769fed4b5d7e3.tar.gz |
dns: make error message match errno
Diffstat (limited to 'test/internet')
-rw-r--r-- | test/internet/test-dns.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/internet/test-dns.js b/test/internet/test-dns.js index a079ec8d44..b781565c30 100644 --- a/test/internet/test-dns.js +++ b/test/internet/test-dns.js @@ -308,6 +308,7 @@ TEST(function test_lookup_failure(done) { assert.ok(err instanceof Error); assert.strictEqual(err.errno, dns.NOTFOUND); assert.strictEqual(err.errno, 'ENOTFOUND'); + assert.ok(!/ENOENT/.test(err.message)); done(); }); |