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() - }) -})