Skip to content

Commit

Permalink
Fix flaky test TestFeaturedFacets:test_run (PP-1726) (#2070)
Browse files Browse the repository at this point in the history
* Fix flaky test TestFeaturedFacets:test_run
* Update comment
  • Loading branch information
jonathangreen authored Sep 18, 2024
1 parent d6aff80 commit 81109d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/manager/search/test_external_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,10 @@ def test_run(
# whether it has the default quality or no (i.e., missing) quality.
# The missing quality case should not cause an exception during search.
data.default_quality.quality = default_or_no_quality
# It is unclear why this is necessary, but without it, this test occasionally fails,
# approximately 1 out of 8 times when running in CI. The failure typically occurs on
# the first assertion.
session.expire_all()
fixture.populate_search_index()

def works(worklist, facets):
Expand Down

0 comments on commit 81109d1

Please sign in to comment.