Skip to content

Commit

Permalink
chore: remove old test
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Aug 14, 2024
1 parent d71ddff commit 49f398a
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions tests/token-queue/image-cache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
// });
});

0 comments on commit 49f398a

Please sign in to comment.