Skip to content

Commit

Permalink
test: adjust test for xdist
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jan 7, 2025
1 parent 310174e commit 1d6b56c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d6b56c

Please sign in to comment.