Skip to content

Commit 4d838c5

Browse files
committed
trgm_search_tests: ensure tenant handler cache is empty for each test case
1 parent 1a72529 commit 4d838c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/trgm_search_tests.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def test_search(self):
5656
"""
5757
os.environ["SEARCH_RESULT_LIMIT"] = "10"
5858

59+
# Ensure tenant handler cache is empty
60+
server.tenant_handler.handler_cache = {}
61+
5962
# Test result returned for matching filter
6063
status_code, json_data = self.get(
6164
'/fts/?filter=test_dataset,dataproduct&searchtext=searchstring')
@@ -117,6 +120,9 @@ def test_search_templates(self):
117120
"""
118121
os.environ["SEARCH_RESULT_LIMIT"] = "10"
119122

123+
# Ensure tenant handler cache is empty
124+
server.tenant_handler.handler_cache = {}
125+
120126
# Test result returned for matching filter
121127
status_code, json_data = self.get(
122128
'/fts/?filter=test_dataset,foreground&searchtext=searchstring\'$')

0 commit comments

Comments
 (0)