From 8487daeb91f43977fdc18cdf1a7221eb36aa5a9a Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Mon, 16 Sep 2024 13:21:23 +0800 Subject: [PATCH] test: skip multipart upload on Node.js 22 --- test/options.files.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/options.files.test.ts b/test/options.files.test.ts index 0550b5fc..e48f727b 100644 --- a/test/options.files.test.ts +++ b/test/options.files.test.ts @@ -269,7 +269,8 @@ describe('options.files.test.ts', () => { assert.equal(response.data.form.foo, 'bar'); }); - it('should support custom fileName when use files:object', async () => { + // will hang on Node.js 22 + it.skipIf(process.version.startsWith('v22.'))('should support custom fileName when use files:object', async () => { const rawData = JSON.stringify({ a: 1 }); const response = await urllib.request(`${_url}multipart`, { files: {