Skip to content

Commit

Permalink
chore: remove infura tests (#219)
Browse files Browse the repository at this point in the history
Disable tests are the credentials are no longer valid
  • Loading branch information
wa0x6e authored Aug 23, 2024
1 parent 0c3a418 commit ee44621
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/e2e/rpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('POST /', () => {

expect(response.statusCode).toBe(200);
expect(response.body.result.cid.length).toBeGreaterThan(10);
expect(['4everland', 'infura', 'fleek', 'pinata']).toContain(response.body.result.provider);
expect(['4everland', 'fleek', 'pinata']).toContain(response.body.result.provider);
});
});

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/upload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('POST /upload', () => {
expect(response.statusCode).toBe(200);
expect(response.body.jsonrpc).toBe('2.0');
expect(response.body.result.cid.length).toBeGreaterThan(10);
expect(['4everland', 'infura', 'fleek', 'pinata']).toContain(response.body.result.provider);
expect(['4everland', 'fleek', 'pinata']).toContain(response.body.result.provider);
});
});
});
5 changes: 1 addition & 4 deletions test/unit/providers/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fs from 'fs';
import path from 'path';
import * as FourEverland from '../../../src/providers/4everland';
import * as Fleek from '../../../src/providers/fleek';
import * as Infura from '../../../src/providers/infura';
import * as Pinata from '../../../src/providers/pinata';

describe('providers', () => {
Expand Down Expand Up @@ -35,9 +34,7 @@ describe('providers', () => {
}

const providerPayload: { name: string; provider: any; idVersion: string }[] =
buildProviderPayload([Fleek, Infura, Pinata], 'v0').concat(
buildProviderPayload([FourEverland], 'v1')
);
buildProviderPayload([Fleek, Pinata], 'v0').concat(buildProviderPayload([FourEverland], 'v1'));

describe.each(providerPayload)('$name', ({ name, provider, idVersion }) => {
if (!provider.isConfigured()) {
Expand Down

0 comments on commit ee44621

Please sign in to comment.