tests: Clear in-memory Client caches before testing query counts.

This makes counts more apples-to-apples comparable when run
back-to-back.

(cherry picked from commit a84de411a9)
This commit is contained in:
Alex Vandiver
2023-09-27 00:10:49 +00:00
committed by Tim Abbott
parent c440958ecf
commit aee36b2b49
9 changed files with 30 additions and 31 deletions

View File

@@ -1462,7 +1462,7 @@ class UserProfileTest(ZulipTestCase):
# Subscribe to the stream.
self.subscribe(iago, stream.name)
with self.assert_database_query_count(6):
with self.assert_database_query_count(7):
result = orjson.loads(
self.client_get(f"/json/users/{iago.id}/subscriptions/{stream.id}").content
)