Skip to content

Commit

Permalink
fix: unstable tx_priority test (evmos#1440)
Browse files Browse the repository at this point in the history
* fix unstable tx_priority test

* Update tests/integration_tests/test_priority.py

Co-authored-by: yihuang <[email protected]>

* Update tests/integration_tests/test_priority.py

Co-authored-by: yihuang <[email protected]>

Co-authored-by: yihuang <[email protected]>
Co-authored-by: Adi Saravanan <[email protected]>
Co-authored-by: Federico Kunze Küllmer <[email protected]>
  • Loading branch information
4 people committed Mar 7, 2023
1 parent a114a1a commit 65a47cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration_tests/test_priority.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ def test_native_tx_priority(ethermint: Ethermint):
tx_indexes = [(int(r["height"]), r["index"]) for r in tx_results]
print(tx_indexes)
# the first sent tx are included later, because of lower priority
assert all(i1 > i2 for i1, i2 in zip(tx_indexes, tx_indexes[1:]))
# ensure desc within continuous block
assert all((
b1 < b2 or (b1 == b2 and i1 > i2)
) for (b1, i1), (b2, i2) in zip(tx_indexes, tx_indexes[1:]))


def get_max_priority_price(max_priority_price):
Expand Down

0 comments on commit 65a47cf

Please sign in to comment.