Skip to content

Commit

Permalink
feat: move E2E tests to Holesky
Browse files Browse the repository at this point in the history
  • Loading branch information
infloop committed Aug 28, 2024
1 parent 2d7fd4a commit 8a4dd7e
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 310 deletions.
12 changes: 6 additions & 6 deletions packages/registry/test/fetch/key.fetch.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Keys', () => {
});

test('fetch one key', async () => {
const key = await fetchService.fetchOne(21, 0, { blockTag: 6912872 });
const key = await fetchService.fetchOne(6, 0, { blockTag: 120092 });

expect(key).toBeInstanceOf(Object);

Expand All @@ -24,20 +24,20 @@ describe('Keys', () => {
});

test('fetch operator keys', async () => {
const keys = await fetchService.fetch(21, 0, -1, { blockTag: 6912872 });
const keys = await fetchService.fetch(6, 0, -1, { blockTag: 120092 });

expect(keys).toBeInstanceOf(Array);
expect(keys.length).toBe(3);
expect(keys.length).toBe(500);
}, 15_000);

test('fetch multiply operators', async () => {
const keys = await fetchService.fetch(21, 0, 2, { blockTag: 6912872 });
const keys = await fetchService.fetch(6, 0, 2, { blockTag: 120092 });

expect(keys).toBeInstanceOf(Array);
expect(keys.length).toBe(2);

expect(keys[0].operatorIndex).toBe(21);
expect(keys[1].operatorIndex).toBe(21);
expect(keys[0].operatorIndex).toBe(6);
expect(keys[1].operatorIndex).toBe(6);

expect(keys[0].index).toBe(0);
expect(keys[1].index).toBe(1);
Expand Down
Loading

0 comments on commit 8a4dd7e

Please sign in to comment.