From be59e93220e24a2e66ae2843a136e61eab9d8ac3 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sat, 27 May 2023 15:42:20 +0200 Subject: refactor(node/http): don't use readablestream for writing to request (#19282) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactors the internal usage of a readablestream to write to the resource directly --------- Co-authored-by: Bartek IwaƄczuk --- .../test/parallel/test-client-request-destroy.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 cli/tests/node_compat/test/parallel/test-client-request-destroy.js (limited to 'cli/tests/node_compat/test/parallel') diff --git a/cli/tests/node_compat/test/parallel/test-client-request-destroy.js b/cli/tests/node_compat/test/parallel/test-client-request-destroy.js deleted file mode 100644 index f7e11ae0b..000000000 --- a/cli/tests/node_compat/test/parallel/test-client-request-destroy.js +++ /dev/null @@ -1,20 +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 "node/_tools/setup.ts". Do not modify this file manually - -'use strict'; - -// Test that http.ClientRequest,prototype.destroy() returns `this`. -require('../common'); - -const assert = require('assert'); -const http = require('http'); -const clientRequest = new http.ClientRequest({ createConnection: () => {} }); - -assert.strictEqual(clientRequest.destroyed, false); -assert.strictEqual(clientRequest.destroy(), clientRequest); -assert.strictEqual(clientRequest.destroyed, true); -assert.strictEqual(clientRequest.destroy(), clientRequest); -- cgit v1.2.3