From c753f27a3d4ff1ca7d8a1167d6fc655685310a09 Mon Sep 17 00:00:00 2001 From: Paolo Insogna Date: Sat, 2 Jul 2022 18:10:53 +0200 Subject: [PATCH] http: fix failing test PR-URL: https://github.com/nodejs/node/pull/43641 Reviewed-By: Matteo Collina Reviewed-By: Filip Skokan --- test/parallel/test-stream-finished.js | 4 +++- test/{parallel => sequential}/test-gc-http-client-timeout.js | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename test/{parallel => sequential}/test-gc-http-client-timeout.js (100%) diff --git a/test/parallel/test-stream-finished.js b/test/parallel/test-stream-finished.js index 47138e878e4407..a574a4a65342e2 100644 --- a/test/parallel/test-stream-finished.js +++ b/test/parallel/test-stream-finished.js @@ -660,7 +660,9 @@ testClosed((opts) => new Writable({ write() {}, ...opts })); { method: 'GET', port: this.address().port }, common.mustCall(function(res) { res.resume(); - server.close(); + finished(res, common.mustCall(() => { + server.close(); + })); }) ).end(); }); diff --git a/test/parallel/test-gc-http-client-timeout.js b/test/sequential/test-gc-http-client-timeout.js similarity index 100% rename from test/parallel/test-gc-http-client-timeout.js rename to test/sequential/test-gc-http-client-timeout.js