Skip to content

Commit

Permalink
chore(samples): remove flaky test conditions (#381)
Browse files Browse the repository at this point in the history
The query expansion search result on the backend is not stable and the returned results may change over time. Tried to remove the strong ranking checks, and only check if query expansion is enabled in the search ressponse.
  • Loading branch information
chenlei1216 authored Jan 10, 2023
1 parent b2f44e3 commit 93a83e8
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,4 @@ def test_search_with_query_expansion_spec_pass():
def test_search_with_query_expansion_spec():
response = search()

assert response.results[0].product.title == "Google Youth Hero Tee Grey"
assert response.results[2].product.title != "Google Youth Hero Tee Grey"
assert response.query_expansion_info.expanded_query is True

0 comments on commit 93a83e8

Please sign in to comment.