File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ import * as zlib from 'zlib';
2
2
import * as brotliPromise from 'brotli-wasm' ;
3
3
import { ZstdCodec , ZstdStreaming } from 'zstd-codec' ;
4
4
5
- import { expect } from './test-utils' ;
5
+ import * as semver from 'semver' ;
6
+
7
+ import { expect , BROKEN_WASM_BUFFER_ISSUE } from './test-utils' ;
6
8
import { buildBodyReader } from '../src/util/request-utils' ;
7
9
8
10
const zstd : Promise < ZstdStreaming > = new Promise ( ( resolve ) =>
@@ -74,6 +76,7 @@ describe("buildBodyReader", () => {
74
76
} ) ;
75
77
76
78
it ( 'can decode zstandard bodies' , async function ( ) {
79
+ if ( semver . satisfies ( process . version , BROKEN_WASM_BUFFER_ISSUE ) ) this . skip ( ) ;
77
80
this . timeout ( 5000 ) ; // Zstd can be slow to load (inside the body reader, not just here)
78
81
79
82
const content = Buffer . from ( ( await zstd ) . compress ( Buffer . from ( 'hello zstd zstd zstd world' ) ) ) ;
Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ export const DEFAULT_KEEP_ALIVE = ">=19";
264
264
export const FIXED_KEEP_ALIVE_BEHAVIOUR = ">=20" ;
265
265
export const CHUNKED_ENCODING_BUG = "<16" ;
266
266
export const BROKEN_H2_OVER_H2_TUNNELLING = "~20.12" ; // https://github.com/nodejs/node/issues/52344
267
+ export const BROKEN_WASM_BUFFER_ISSUE = "~22.2" ; // https://github.com/nodejs/node/issues/53075
267
268
268
269
export const defaultNodeConnectionHeader = ( ) =>
269
270
semver . satisfies ( process . version , DEFAULT_KEEP_ALIVE )
You can’t perform that action at this time.
0 commit comments