From 318f3d3e44a9da3815c04e92e9d9dcf7a70c6582 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 12 Mar 2024 07:02:19 +0100 Subject: [PATCH] try to fix windows failure (#2950) Refs: https://github.com/nodejs/undici/issues/2949 --- test/client-request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/client-request.js b/test/client-request.js index a0f2d43ba9d..8e0111de09c 100644 --- a/test/client-request.js +++ b/test/client-request.js @@ -22,7 +22,6 @@ test('request dump big', async (t) => { while (res.write('asd')) { // Do nothing... } - res.on('drain', () => t.fail()) }) after(() => server.close()) @@ -39,6 +38,7 @@ test('request dump big', async (t) => { method: 'GET' }, (err, { body }) => { t.ifError(err) + body.on('data', () => t.fail()) body.dump().then(() => { dumped = true t.ok(true, 'pass')