Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit c602fc6

Browse files
authored
Ok/6984 update e2e network tests (#7276)
* Update get_proof.test.ts * test * fix get storage * Update e2e_network_tests.yml * fix GA file * done * revert
1 parent aa471e7 commit c602fc6

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

.github/workflows/e2e_network_tests.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
- release/**
66
tags:
77
- v4.*
8+
9+
# For test purpose only:
10+
# pull_request:
11+
# branches:
12+
# - '4.x'
13+
# types: [ opened, reopened, synchronize ]
814
jobs:
915
build:
1016
name: Build Packages
@@ -16,11 +22,10 @@ jobs:
1622
node-version: 18
1723
cache: yarn
1824
- run: yarn
19-
- run: tar -czf /tmp/web3-16.js.tar.gz --exclude="./.git" ./
20-
- uses: actions/upload-artifact@v3
25+
- uses: actions/cache/save@v4
2126
with:
22-
name: web3-16.js.tar.gz
23-
path: /tmp/web3-16.js.tar.gz
27+
path: ./
28+
key: web3-e2e-18-${{github.sha}}
2429
e2e:
2530
name: E2E Network Tests
2631
needs: build
@@ -41,11 +46,10 @@ jobs:
4146
- uses: actions/setup-node@v3
4247
with:
4348
node-version: 18
44-
- uses: actions/download-artifact@v3
49+
- uses: actions/cache/restore@v4
4550
with:
46-
name: web3-16.js.tar.gz
47-
path: /tmp
48-
- run: tar -xf /tmp/web3-16.js.tar.gz -C ./
51+
path: ./
52+
key: web3-e2e-18-${{github.sha}}
4953
- run: |
5054
yarn test:e2e:${{ matrix.network }}:${{ matrix.mode }}
5155
shell: bash

packages/web3/test/e2e/get_proof.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ describe(`${getSystemTestBackend()} tests - getProof`, () => {
5555
| 'blockNumber';
5656
}>({
5757
block: [
58-
'earliest',
58+
// 'earliest', block is earlier than 128 blocks ago "Returned error: missing trie node"
5959
'latest',
60-
'pending',
60+
// 'pending', block is not available "Returned error: missing trie node"
6161
'safe',
6262
'finalized',
6363
'blockHash',

packages/web3/test/e2e/mainnet/get_storage_at.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ describe(`${getSystemTestBackend()} tests - getStorageAt`, () => {
3939
it.each(
4040
toAllVariants<{
4141
storageSlot: Numbers;
42-
block:
43-
| 'earliest'
44-
| 'latest'
45-
| 'pending'
42+
block: // | 'earliest'
43+
| 'latest'
44+
// | 'pending'
4645
| 'finalized'
4746
| 'safe'
4847
| 'blockHash'
@@ -80,7 +79,7 @@ describe(`${getSystemTestBackend()} tests - getStorageAt`, () => {
8079
} else if (block === 'blockHash' || block === 'blockNumber') {
8180
// eslint-disable-next-line jest/no-conditional-expect
8281
expect(result).toBe(
83-
'0x00000000000000000000000000000000000000000000000000b8b61e3be91403',
82+
'0x00000000000000000000000000000000000000000000000000c354b137cba7ba',
8483
);
8584
} else {
8685
// eslint-disable-next-line jest/no-conditional-expect

0 commit comments

Comments
 (0)