Skip to content

Commit 54f19f0

Browse files
chore(samples): remove flaky test conditions (GoogleCloudPlatform#8968)
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 response. Co-authored-by: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com>
1 parent 6328e7d commit 54f19f0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

retail/interactive-tutorials/search/search_with_query_expansion_spec_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,4 @@ def test_search_with_query_expansion_spec_pass():
3636
def test_search_with_query_expansion_spec():
3737
response = search()
3838

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

0 commit comments

Comments
 (0)