mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 07:07:43 +08:00
DEV: Don’t replace Rails logger in specs (#29721)
Instead of replacing the Rails logger in specs, we can instead use `#broadcast_to` which has been introduced in Rails 7.
This commit is contained in:
@ -413,7 +413,6 @@ describe Chat::ChannelArchiveService do
|
||||
end
|
||||
|
||||
it "handles errors gracefully, sends a private message to the archiving user, and is idempotent on retry" do
|
||||
Rails.logger = @fake_logger = FakeLogger.new
|
||||
create_messages(35) && start_archive
|
||||
|
||||
Chat::ChannelArchiveService
|
||||
|
Reference in New Issue
Block a user