mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
test_subs: Fix stale stream object in archive tests.
This commit is contained in:
@@ -3362,6 +3362,8 @@ class StreamAdminTest(ZulipTestCase):
|
|||||||
result = self.client_delete("/json/streams/" + str(stream_id))
|
result = self.client_delete("/json/streams/" + str(stream_id))
|
||||||
self.assert_json_success(result)
|
self.assert_json_success(result)
|
||||||
|
|
||||||
|
stream.refresh_from_db()
|
||||||
|
|
||||||
# We no longer send subscription events for stream deactivations.
|
# We no longer send subscription events for stream deactivations.
|
||||||
sub_events = [e for e in events if e["event"]["type"] == "subscription"]
|
sub_events = [e for e in events if e["event"]["type"] == "subscription"]
|
||||||
self.assertEqual(sub_events, [])
|
self.assertEqual(sub_events, [])
|
||||||
|
|||||||
Reference in New Issue
Block a user