From 93a83e8d203cf707003c7a4c1756c7601205d0e9 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Tue, 10 Jan 2023 10:07:05 -0800 Subject: [PATCH] chore(samples): remove flaky test conditions (#381) 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. --- .../search/search_with_query_expansion_spec_test.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/google-cloud-retail/samples/interactive-tutorials/search/search_with_query_expansion_spec_test.py b/packages/google-cloud-retail/samples/interactive-tutorials/search/search_with_query_expansion_spec_test.py index 99abdd184606..bd2af583ccc1 100644 --- a/packages/google-cloud-retail/samples/interactive-tutorials/search/search_with_query_expansion_spec_test.py +++ b/packages/google-cloud-retail/samples/interactive-tutorials/search/search_with_query_expansion_spec_test.py @@ -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