Skip to content

Commit 3fcb74b

Browse files
committed
✅(backend) fix flaky test in user search api
Make sure the full is never John for the first user in order to make sure we always have only 2 users (as the search is performed on both the email and the full name). Fixes #1765 Signed-off-by: Anto59290 <antonin59290@hotmail.com>
1 parent ea3a4a6 commit 3fcb74b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ and this project adheres to
2222

2323
- 🐛(frontend) fix tables deletion #1752
2424
- 🐛(frontend) fix children not display when first resize #1753
25+
- ✅(backend) reduce flakiness on backend test #1769
2526

2627

2728
## [4.2.0] - 2025-12-17

src/backend/core/tests/test_api_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def test_api_users_list_query_short_queries():
311311
"""
312312
Queries shorter than 5 characters should return an empty result set.
313313
"""
314-
user = factories.UserFactory(email="paul@example.com")
314+
user = factories.UserFactory(email="paul@example.com", full_name="Paul")
315315
client = APIClient()
316316
client.force_login(user)
317317

0 commit comments

Comments
 (0)