Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

fix: extend geth config on integration tests #1467

Merged
merged 6 commits into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion scripts/start-geth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ rm $tmpfile
# start up
geth --networkid 9000 --datadir $DATA --http --http.addr localhost --http.api 'personal,eth,net,web3,txpool,miner' \
-unlock '0x57f96e6b86cdefdb3d412547816a82e3e0ebf9d2' --password $pwdfile \
--mine --allow-insecure-unlock \
--mine --miner.threads 1 --allow-insecure-unlock --ipcdisable \
$@

rm $pwdfile
19 changes: 19 additions & 0 deletions tests/integration_tests/test_setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from .utils import (
CONTRACTS,
deploy_contract,
send_successful_transaction,
w3_wait_for_block,
w3_wait_for_new_blocks,
)


def test_setup_geth(geth):
w3 = geth.w3
w3_wait_for_block(w3, 5)

# test utilities
send_successful_transaction(w3)
deploy_contract(w3, CONTRACTS["TestERC20A"])

# ensure blocks are still being produced
w3_wait_for_new_blocks(w3, 5)