From c5c345e202c21d15d640304423c0e1d3e6a0d79e Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Fri, 26 Apr 2024 07:53:26 +0200 Subject: [PATCH] [test] Use the `highWaterMark` variable Use the value of the `highWaterMark` variable instead of 16384. --- test/create-websocket-stream.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/create-websocket-stream.test.js b/test/create-websocket-stream.test.js index 0a83a45ea..54a13c6c8 100644 --- a/test/create-websocket-stream.test.js +++ b/test/create-websocket-stream.test.js @@ -604,7 +604,7 @@ describe('createWebSocketStream', () => { }); wss.on('connection', (ws) => { - ws.send(randomBytes(16 * 1024)); + ws.send(randomBytes(highWaterMark)); }); }); });