diff options
Diffstat (limited to 'cli/tests/node_compat/test/parallel/test-dns-memory-error.js')
-rw-r--r-- | cli/tests/node_compat/test/parallel/test-dns-memory-error.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-dns-memory-error.js b/cli/tests/node_compat/test/parallel/test-dns-memory-error.js deleted file mode 100644 index 6ef6968be..000000000 --- a/cli/tests/node_compat/test/parallel/test-dns-memory-error.js +++ /dev/null @@ -1,23 +0,0 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file - -// Copyright Joyent and Node contributors. All rights reserved. MIT license. -// Taken from Node 18.12.1 -// This file is automatically generated by `tools/node_compat/setup.ts`. Do not modify this file manually. - -// Flags: --expose-internals -'use strict'; - -// Check that if libuv reports a memory error on a DNS query, that the memory -// error is passed through and not replaced with ENOTFOUND. - -require('../common'); - -const assert = require('assert'); -const errors = require('internal/errors'); -const { internalBinding } = require('internal/test/binding'); - -const { UV_EAI_MEMORY } = internalBinding('uv'); -const memoryError = errors.dnsException(UV_EAI_MEMORY, 'fhqwhgads'); - -assert.strictEqual(memoryError.code, 'EAI_MEMORY'); |