Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_events: Run on_commit send_event hooks immediately.
Further commits will hook some `send_event` calls to `on_commit`. With those changes, these will never be executed in tests, because transactions never get commited with `TestCase`, which the `ZulipTestCase` is a subclass of. We want to make sure that these events are actually sent for testing purposes, hence this change. There's no need to actually capture the callbacks, because the events are already thoroughly tested.
- Loading branch information