From 2701017724f0a054d0dade94312ca5a52a1847c7 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 21 Mar 2024 12:21:12 +0100 Subject: [PATCH] Do not fail test if streams support typed arrays Signed-off-by: Matteo Collina --- test/client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/client.js b/test/client.js index 155023f936e..ba41a83a17d 100644 --- a/test/client.js +++ b/test/client.js @@ -2001,7 +2001,9 @@ test('async iterator early return closes early', async (t) => { await t.completed }) -test('async iterator yield unsupported TypedArray', async (t) => { +test('async iterator yield unsupported TypedArray', { + skip: !!require('stream')._isArrayBufferView +}, async (t) => { t = tspl(t, { plan: 3 }) const server = createServer((req, res) => { req.on('end', () => {