Skip to content
This repository was archived by the owner on Apr 4, 2024. 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
2 changes: 1 addition & 1 deletion tests/integration_tests/configs/default.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
config: {
consensus: {
// larger timeout for more stable mempool tests
timeout_commit: '10s',
timeout_commit: '2s',
},
mempool: {
// use v1 mempool to enable tx prioritization
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/test_pruned_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_pruned_node(pruned):
signed = sign_transaction(w3, tx, KEYS["validator"])
txhash = w3.eth.send_raw_transaction(signed.rawTransaction)
print("wait for prunning happens")
w3_wait_for_new_blocks(w3, 10)
w3_wait_for_new_blocks(w3, 15)

tx_receipt = w3.eth.get_transaction_receipt(txhash.hex())
assert len(tx_receipt.logs) == 1
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_cosmovisor_upgrade(custom_ethermint: Ethermint):
"""
cli = custom_ethermint.cosmos_cli()
height = cli.block_height()
target_height = height + 5
target_height = height + 10
print("upgrade height", target_height)

w3 = custom_ethermint.w3
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def wait_for_new_blocks(cli, n):


def wait_for_block(cli, height, timeout=240):
for i in range(timeout * 2):
for _ in range(timeout * 2):
try:
status = cli.status()
except AssertionError as e:
Expand All @@ -96,7 +96,7 @@ def wait_for_block(cli, height, timeout=240):


def w3_wait_for_block(w3, height, timeout=240):
for i in range(timeout * 2):
for _ in range(timeout * 2):
try:
current_height = w3.eth.block_number
except Exception as e:
Expand Down