From b10bd8c688bdce0e25d8e33278bb3899dd274c2c Mon Sep 17 00:00:00 2001 From: Popov Aleksey Date: Wed, 3 May 2023 04:29:27 +0300 Subject: [PATCH] test: fixed server test on Node 20 (#2889) * test: fixed test * test: enabled test GH-1384 --- test/server/proxy/regression-test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/server/proxy/regression-test.js b/test/server/proxy/regression-test.js index 2e9a66eeb..9831c6b0e 100644 --- a/test/server/proxy/regression-test.js +++ b/test/server/proxy/regression-test.js @@ -1010,7 +1010,7 @@ describe('Regression', () => { ]); }); - it.skip('Should close a proxy connection if a connection to destination server hang up (GH-1384)', () => { + it('Should close a proxy connection if a connection to destination server hang up (GH-1384)', () => { const agent = new http.Agent({ keepAlive: true, keepAliveMsecs: 10000, @@ -1088,7 +1088,8 @@ describe('Regression', () => { .then(body => { expect(body).eql(''); - reqOptions.path += 'redirect'; + reqOptions.path += 'redirect'; + reqOptions.pathname += 'redirect'; return sendRequest(reqOptions); })