Skip to content

Commit

Permalink
test: skip multipart upload on Node.js 22
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Sep 16, 2024
1 parent 1fb47c8 commit 8487dae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/options.files.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 8487dae

Please sign in to comment.