0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-14 13:58:53 +08:00
discourse/app/services/upcoming_changes/action
Martin Brennan 8e344695c9
DEV: Fix upcoming change notification flaky specs (#38914)
Followup c6d8fcf95f

On CI and some other test environments, we reuse
databases, so the Migration::Helpers.existing_site?
check will start returning true after some time. This
caused many of the upcoming change notification specs to fail, as they
were relying on the fact that there is no existing site.

This commit adds an UpcomingChanges.should_notify_admins? method
that can be stubbed in specs rather than directly using the
Migration::Helpers.existing_site? method.
2026-03-27 15:03:23 +08:00
..
notification_data_merger.rb
notify_admins_of_available_change.rb FIX: Do not notify admins of upcoming changes on new sites (#38890) 2026-03-27 12:32:12 +10:00
track_notify_added_changes.rb DEV: Fix upcoming change notification flaky specs (#38914) 2026-03-27 15:03:23 +08:00
track_notify_status_changes.rb DEV: Fix upcoming change notification flaky specs (#38914) 2026-03-27 15:03:23 +08:00
track_removed_changes.rb