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

fix: unstable tx_priority test #1440

Merged
merged 7 commits into from
Nov 10, 2022
Merged
Changes from 1 commit
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
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((
i1[0] < i2[0] or i1[0] == i2[0] and i1[1] > i2[1]
mmsqe marked this conversation as resolved.
Show resolved Hide resolved
) for i1, i2 in zip(tx_indexes, tx_indexes[1:]))


def get_max_priority_price(max_priority_price):
Expand Down