mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 14:08:23 +00:00
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:
committed by
Tim Abbott
parent
c440958ecf
commit
aee36b2b49
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user