summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-dns-error.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-04-26 05:02:46 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-04-30 16:49:52 +0200
commita158d412b323001590099594002ed2426bcbaf8b (patch)
treef10581dc0d90351a72f2907124e527f7f0e30e67 /test/parallel/test-http-dns-error.js
parent283a967e356311a467113eea450a81827d43c969 (diff)
downloadandroid-node-v8-a158d412b323001590099594002ed2426bcbaf8b.tar.gz
android-node-v8-a158d412b323001590099594002ed2426bcbaf8b.tar.bz2
android-node-v8-a158d412b323001590099594002ed2426bcbaf8b.zip
dns: report out of memory properly
This addresses a part of a TODO by properly reporting an out of memory error to the user instead of reporting `ENOTFOUND`. PR-URL: https://github.com/nodejs/node/pull/20317 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/parallel/test-http-dns-error.js')
-rw-r--r--test/parallel/test-http-dns-error.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-dns-error.js b/test/parallel/test-http-dns-error.js
index 06a15c89fb..e3d09a39d0 100644
--- a/test/parallel/test-http-dns-error.js
+++ b/test/parallel/test-http-dns-error.js
@@ -29,7 +29,7 @@ const assert = require('assert');
const http = require('http');
const https = require('https');
-const host = '*'.repeat(256);
+const host = '*'.repeat(64);
const MAX_TRIES = 5;
let errCode = 'ENOTFOUND';