Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_events: Explicitly subscribe both users to a stream when testing.
Shubham Padia8ee80f29ae5e
diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.pyindex 6191ca26ff9..2e9d99229a2 100644--- a/zerver/tests/test_events.py+++ b/zerver/tests/test_events.py@@ -3569,6 +3569,10 @@ class NormalActionsTest(BaseAction):# Guest loses access to deactivated user if the user# was not involved in DMs.user_profile = self.example_user("hamlet")+ # User is in the same channel as guest, but not in DMs.+ self.make_stream("Test new stream")+ self.subscribe(user_profile, "Test new stream")+ self.subscribe(self.user_profile, "Test new stream")with self.verify_action(num_events=6) as events:do_deactivate_user(user_profile, acting_user=None)check_subscription_peer_remove("events[0]", events[0])