Skip to content

Commit

Permalink
e2e-tests: Work around geth problem
Browse files Browse the repository at this point in the history
  • Loading branch information
palango authored and karlb committed May 15, 2024
1 parent 4d6c2f8 commit d557979
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion e2e_test/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ done

## Run tests
echo Geth ready, start tests
cd "$SCRIPT_DIR" || exit 1

# There's a problem with geth return errors on the first transaction sent.
# See https://github.com/ethereum/web3.py/issues/3212
# To work around this, send a transaction before running tests
source ./shared.sh
cast send --json --private-key $ACC_PRIVKEY $TOKEN_ADDR 'transfer(address to, uint256 value) returns (bool)' 0x000000000000000000000000000000000000dEaD 100 --async

failures=0
tests=0
cd "$SCRIPT_DIR" || exit 1
for f in test_*"$TEST_GLOB"*
do
echo -e "\nRun $f"
Expand Down

0 comments on commit d557979

Please sign in to comment.