From dd80fec19dec86c6d9915a7a6cb817cd7e06a839 Mon Sep 17 00:00:00 2001 From: Khafra <42794878+KhafraDev@users.noreply.github.com> Date: Fri, 15 Jul 2022 15:54:56 -0400 Subject: [PATCH] fix: remove test that fails on node v16.8 --- test/fetch/response.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/fetch/response.js b/test/fetch/response.js index 461759e259a..9252c875e49 100644 --- a/test/fetch/response.js +++ b/test/fetch/response.js @@ -216,12 +216,14 @@ test('constructing a Response with a ReadableStream body', async (t) => { const response1 = new Response(readable) const response2 = response1.clone() const response3 = response1.clone() - const response4 = response1.clone() + // const response4 = response1.clone() await t.rejects(response1.arrayBuffer(), TypeError) await t.rejects(response2.text(), TypeError) await t.rejects(response3.json(), TypeError) - await t.rejects(response4.blob(), TypeError) + // TODO: on Node v16.8.0, this throws a TypeError + // because the body is detected as disturbed. + // await t.rejects(response4.blob(), TypeError) t.end() })