DEV: Resolve stat registration flaky tests (#29084)

This commit is contained in:
David Taylor 2024-10-04 13:49:22 +01:00 committed by GitHub
parent c13ca6eb19
commit 69d2373f77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,8 @@ RSpec.describe SiteController do
end
describe "#statistics" do
after { DiscoursePluginRegistry.reset! }
it "is visible for sites requiring login" do
SiteSetting.login_required = true
SiteSetting.share_anonymized_statistics = true

View File

@ -44,6 +44,8 @@ RSpec.describe AboutSerializer do
end
describe "#stats" do
after { DiscoursePluginRegistry.reset! }
let(:plugin) { Plugin::Instance.new }
it "serialize exposable stats only" do