From 49f398aca2bc23d30aa8b0cca75b521e48813aab Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Wed, 14 Aug 2024 09:53:16 -0600 Subject: [PATCH] chore: remove old test --- tests/token-queue/image-cache.test.ts | 35 --------------------------- 1 file changed, 35 deletions(-) diff --git a/tests/token-queue/image-cache.test.ts b/tests/token-queue/image-cache.test.ts index dc2426a6..81ac73b8 100644 --- a/tests/token-queue/image-cache.test.ts +++ b/tests/token-queue/image-cache.test.ts @@ -6,7 +6,6 @@ import { MetadataTimeoutError, TooManyRequestsHttpError, } from '../../src/token-processor/util/errors'; -import { MockAgent, setGlobalDispatcher } from 'undici'; describe('Image cache', () => { const contract = 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.crashpunks-v2'; @@ -49,38 +48,4 @@ describe('Image cache', () => { 'data:123456', ]); }); - - // test('throws upload error', async () => { - // const server = createTestResponseServer('success'); - // const serverReady = waiter(); - // server.listen(9999, 'localhost', () => serverReady.finish()); - // await serverReady; - - // const agent = new MockAgent(); - // agent.disableNetConnect(); - // agent - // .get('http://metadata.google.internal') - // .intercept({ - // path: '/computeMetadata/v1/instance/service-accounts/default/token', - // method: 'GET', - // }) - // .reply(200, { access_token: 'test' }); - // agent - // .get('https://storage.googleapis.com') - // .intercept({ - // path: '/*', - // method: 'POST', - // }) - // .reply(500) - // .persist(); - // setGlobalDispatcher(agent); - - // await expect( - // processImageCache('http://localhost:9999/', contract, tokenNumber) - // ).rejects.toThrow(HttpError); - - // const serverDone = waiter(); - // server.close(() => serverDone.finish()); - // await serverDone; - // }); });