From 1d6b56cf767c7ef3daad4c49a89aa5d650dca5a1 Mon Sep 17 00:00:00 2001 From: antazoey Date: Mon, 6 Jan 2025 18:51:49 -0600 Subject: [PATCH] test: adjust test for xdist --- tests/functional/test_accounts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/test_accounts.py b/tests/functional/test_accounts.py index b73acc7571..de771ef1fe 100644 --- a/tests/functional/test_accounts.py +++ b/tests/functional/test_accounts.py @@ -637,14 +637,16 @@ def test_create_account(accounts): assert isinstance(created_account, TestAccount) assert created_account.index == length_at_start + length_at_start = len(accounts) second_created_account = accounts.generate_test_account() + assert len(accounts) == length_at_start + 1 assert created_account.address != second_created_account.address assert second_created_account.index == created_account.index + 1 # Last index should now refer to the last-created account. last_idx_acct = accounts[-1] - assert last_idx_acct.index == second_created_account.index == len(accounts) - 1 + assert last_idx_acct.index == second_created_account.index assert last_idx_acct.address == second_created_account.address assert last_idx_acct.address != accounts[0].address assert last_idx_acct.address != created_account.address