From cb26928b6250668c3bdfa722e8e901feefe7b6a0 Mon Sep 17 00:00:00 2001 From: Claude Bot Date: Sat, 31 Jan 2026 19:38:36 +0000 Subject: [PATCH] Add error handler to third test's client script Added req.on('error') handler to match the pattern used in the first test, ensuring consistent error handling and debuggable failures. Co-Authored-By: Claude Opus 4.5 --- test/regression/issue/26638.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/regression/issue/26638.test.ts b/test/regression/issue/26638.test.ts index d8c01648de..fa560af953 100644 --- a/test/regression/issue/26638.test.ts +++ b/test/regression/issue/26638.test.ts @@ -270,6 +270,11 @@ const req = https.request('https://localhost:${server.port}/', { }); }); +req.on('error', (e) => { + console.error('Request error:', e.message); + process.exit(1); +}); + // Write many chunks as fast as possible const chunk = '${chunkContent}'; for (let i = 0; i < numChunks; i++) {