Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/e2e_network_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
- release/**
tags:
- v4.*

# For test purpose only:
# pull_request:
# branches:
# - '4.x'
# types: [ opened, reopened, synchronize ]
jobs:
build:
name: Build Packages
Expand All @@ -16,11 +22,10 @@ jobs:
node-version: 18
cache: yarn
- run: yarn
- run: tar -czf /tmp/web3-16.js.tar.gz --exclude="./.git" ./
- uses: actions/upload-artifact@v3
- uses: actions/cache/save@v4
with:
name: web3-16.js.tar.gz
path: /tmp/web3-16.js.tar.gz
path: ./
key: web3-e2e-18-${{github.sha}}
e2e:
name: E2E Network Tests
needs: build
Expand All @@ -41,11 +46,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/download-artifact@v3
- uses: actions/cache/restore@v4
with:
name: web3-16.js.tar.gz
path: /tmp
- run: tar -xf /tmp/web3-16.js.tar.gz -C ./
path: ./
key: web3-e2e-18-${{github.sha}}
- run: |
yarn test:e2e:${{ matrix.network }}:${{ matrix.mode }}
shell: bash
4 changes: 2 additions & 2 deletions packages/web3/test/e2e/get_proof.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ describe(`${getSystemTestBackend()} tests - getProof`, () => {
| 'blockNumber';
}>({
block: [
'earliest',
// 'earliest', block is earlier than 128 blocks ago "Returned error: missing trie node"
'latest',
'pending',
// 'pending', block is not available "Returned error: missing trie node"
'safe',
'finalized',
'blockHash',
Expand Down
9 changes: 4 additions & 5 deletions packages/web3/test/e2e/mainnet/get_storage_at.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ describe(`${getSystemTestBackend()} tests - getStorageAt`, () => {
it.each(
toAllVariants<{
storageSlot: Numbers;
block:
| 'earliest'
| 'latest'
| 'pending'
block: // | 'earliest'
| 'latest'
// | 'pending'
| 'finalized'
| 'safe'
| 'blockHash'
Expand Down Expand Up @@ -80,7 +79,7 @@ describe(`${getSystemTestBackend()} tests - getStorageAt`, () => {
} else if (block === 'blockHash' || block === 'blockNumber') {
// eslint-disable-next-line jest/no-conditional-expect
expect(result).toBe(
'0x00000000000000000000000000000000000000000000000000b8b61e3be91403',
'0x00000000000000000000000000000000000000000000000000c354b137cba7ba',
);
} else {
// eslint-disable-next-line jest/no-conditional-expect
Expand Down