Skip to content

Commit

Permalink
fix flaky latest transactions test
Browse files Browse the repository at this point in the history
Empty list is allowed when there are no txs in a block
  • Loading branch information
sorki committed Feb 7, 2023
1 parent ffc74a1 commit 578c8cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_cardano_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def test_block_latest_transactions(requests_mock):
def test_integration_block_latest_transactions():
if os.getenv('BLOCKFROST_PROJECT_ID_MAINNET'):
api = BlockFrostApi(project_id=os.getenv('BLOCKFROST_PROJECT_ID_MAINNET'))
assert api.block_latest_transactions()
assert (api.block_latest_transactions() or
api.block_latest_transactions() == [])


def test_block(requests_mock):
Expand Down

0 comments on commit 578c8cc

Please sign in to comment.