mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
DEV: Resolve stat registration flaky tests (#29084)
This commit is contained in:
parent
c13ca6eb19
commit
69d2373f77
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user