Skip to content

Commit 578c8cc

Browse files
committed
fix flaky latest transactions test
Empty list is allowed when there are no txs in a block
1 parent ffc74a1 commit 578c8cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_cardano_blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def test_block_latest_transactions(requests_mock):
5252
def test_integration_block_latest_transactions():
5353
if os.getenv('BLOCKFROST_PROJECT_ID_MAINNET'):
5454
api = BlockFrostApi(project_id=os.getenv('BLOCKFROST_PROJECT_ID_MAINNET'))
55-
assert api.block_latest_transactions()
55+
assert (api.block_latest_transactions() or
56+
api.block_latest_transactions() == [])
5657

5758

5859
def test_block(requests_mock):

0 commit comments

Comments
 (0)