Skip to content

Commit

Permalink
test: revert test_account.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Feb 5, 2024
1 parent 6cade60 commit e1c4108
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tests/integration_tests/test_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from web3 import Web3

from .network import setup_ethermint
from .utils import derive_new_account, send_transaction, w3_wait_for_new_blocks
from .utils import ADDRS, derive_new_account, w3_wait_for_new_blocks


@pytest.fixture(scope="module")
Expand Down Expand Up @@ -32,16 +32,20 @@ def cluster(request, custom_ethermint, geth):
def test_get_transaction_count(cluster):
w3: Web3 = cluster.w3
blk = hex(w3.eth.block_number)
sender = ADDRS["validator"]

receiver = derive_new_account().address
n0 = w3.eth.get_transaction_count(receiver, blk)
# ensure transaction send in new block
w3_wait_for_new_blocks(w3, 1, sleep=0.1)
tx = {
"to": receiver,
"value": 1000,
}
receipt = send_transaction(w3, tx)
txhash = w3.eth.send_transaction(
{
"from": sender,
"to": receiver,
"value": 1000,
}
)
receipt = w3.eth.wait_for_transaction_receipt(txhash)
assert receipt.status == 1
[n1, n2] = [w3.eth.get_transaction_count(receiver, b) for b in [blk, "latest"]]
assert n0 == n1
Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests/test_priority.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# NOTE
# The priority mempool feature has been removed from comet bft.
# Tx priority features can be implemented using ABCI++'s app-side mempool.
# Therefore, we are removing the related tests. If tx priority features
Expand Down

0 comments on commit e1c4108

Please sign in to comment.