From d993abc5eb11505df9721409503cfe316f74622d Mon Sep 17 00:00:00 2001 From: Khafra Date: Wed, 8 Feb 2023 12:05:27 -0500 Subject: [PATCH] fix: remove test (#1916) --- test/fetch/issue-1137.js | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 test/fetch/issue-1137.js diff --git a/test/fetch/issue-1137.js b/test/fetch/issue-1137.js deleted file mode 100644 index 2b1585f9c3b..00000000000 --- a/test/fetch/issue-1137.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict' - -const { fetch } = require('../..') -const { test } = require('tap') - -/* global AbortController */ -const controller = new AbortController() - -test('abort fetch', (t) => { - fetch( - 'https://speed.hetzner.de/100MB.bin', { - signal: controller.signal - }).then(response => { - (async () => { - try { - await response.text() - } catch (err) { - t.equal(err.name, 'AbortError') - } - t.end() - })() - controller.abort() - }) -})