Skip to content

Commit

Permalink
πŸ›(tests) fix flaky back-end test
Browse files Browse the repository at this point in the history
fixed a test that would fail because of random auth user name being
too close to tested names (assert would find 2 results instead of 1).
Setting the name of auth user should fix the issue permanently.
  • Loading branch information
mjeammet authored and Morendil committed Jan 9, 2025
1 parent 94a4435 commit 5d2e63f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_api_contacts_list_authenticated_by_full_name():
Authenticated users should be able to search users with a case insensitive and
partial query on the full name.
"""
user = factories.UserFactory()
user = factories.UserFactory(name="Prudence Crandall")

dave = factories.BaseContactFactory(full_name="David Bowman")
nicole = factories.BaseContactFactory(full_name="Nicole Foole")
Expand Down

0 comments on commit 5d2e63f

Please sign in to comment.