Skip to content

Commit 1d6b56c

Browse files
committed
test: adjust test for xdist
1 parent 310174e commit 1d6b56c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/functional/test_accounts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,14 +637,16 @@ def test_create_account(accounts):
637637
assert isinstance(created_account, TestAccount)
638638
assert created_account.index == length_at_start
639639

640+
length_at_start = len(accounts)
640641
second_created_account = accounts.generate_test_account()
642+
assert len(accounts) == length_at_start + 1
641643

642644
assert created_account.address != second_created_account.address
643645
assert second_created_account.index == created_account.index + 1
644646

645647
# Last index should now refer to the last-created account.
646648
last_idx_acct = accounts[-1]
647-
assert last_idx_acct.index == second_created_account.index == len(accounts) - 1
649+
assert last_idx_acct.index == second_created_account.index
648650
assert last_idx_acct.address == second_created_account.address
649651
assert last_idx_acct.address != accounts[0].address
650652
assert last_idx_acct.address != created_account.address

0 commit comments

Comments
 (0)