From 0796f0e268f4eef6c13280c9df679131db5d6b86 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 15 Jul 2019 07:57:40 -0700 Subject: [PATCH] Revert "http: fix test where aborted should not be emitted" This reverts commit 461bf36d701f3f7c669e2d916d5a5bc17fc447bf. PR-URL: https://github.com/nodejs/node/pull/28699 Reviewed-By: Colin Ihrig Reviewed-By: Matteo Collina --- doc/api/http.md | 5 ++-- lib/_http_client.js | 16 ++++--------- test/parallel/test-http-client-aborted.js | 23 ------------------- ...test-http-client-no-error-after-aborted.js | 21 ----------------- .../test-http-client-timeout-on-connect.js | 3 ++- .../test-http-writable-true-after-close.js | 2 +- 6 files changed, 10 insertions(+), 60 deletions(-) delete mode 100644 test/parallel/test-http-client-aborted.js delete mode 100644 test/parallel/test-http-client-no-error-after-aborted.js diff --git a/doc/api/http.md b/doc/api/http.md index e9ed20f05f775f..cc0c7ae1ce4917 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -541,8 +541,7 @@ added: v0.3.8 --> Marks the request as aborting. Calling this will cause remaining data -in the response to be dropped and the socket to be destroyed. After -calling this method no further errors will be emitted. +in the response to be dropped and the socket to be destroyed. ### request.aborted