Skip to content

Commit d8950b9

Browse files
committed
trgm_search_tests: ensure tenant handler cache is empty for each test case
1 parent 0ee6cd0 commit d8950b9

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
@@ -70,6 +70,9 @@ def test_search(self):
7070
"""
7171
os.environ["SEARCH_RESULT_LIMIT"] = "10"
7272

73+
# Ensure tenant handler cache is empty
74+
server.tenant_handler.handler_cache = {}
75+
7376
# Test result returned for matching filter
7477
status_code, json_data = self.get(
7578
'/fts/?filter=test_dataset,foreground&searchtext=searchstring')
@@ -172,6 +175,9 @@ def test_search_templates(self):
172175
"""
173176
os.environ["SEARCH_RESULT_LIMIT"] = "10"
174177

178+
# Ensure tenant handler cache is empty
179+
server.tenant_handler.handler_cache = {}
180+
175181
# Test result returned for matching filter
176182
status_code, json_data = self.get(
177183
'/fts/?filter=test_dataset,foreground&searchtext=searchstring\'$')

0 commit comments

Comments
 (0)