mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
enough with the malloc limit, not needed
This commit is contained in:
parent
99b95f1fc9
commit
a19e43fd3b
6 changed files with 3 additions and 24 deletions
|
@ -70,20 +70,6 @@ describe AdminDashboardData do
|
|||
end
|
||||
end
|
||||
|
||||
describe 'gc_checks' do
|
||||
subject { described_class.new.gc_checks }
|
||||
|
||||
it 'returns nil when gc params are set' do
|
||||
ENV.stubs(:[]).with('RUBY_GC_MALLOC_LIMIT').returns(90000000)
|
||||
expect(subject).to be_nil
|
||||
end
|
||||
|
||||
it 'returns a string when gc params are not set' do
|
||||
ENV.stubs(:[]).with('RUBY_GC_MALLOC_LIMIT').returns(nil)
|
||||
expect(subject).to_not be_nil
|
||||
end
|
||||
end
|
||||
|
||||
describe 'sidekiq_check' do
|
||||
subject { described_class.new.sidekiq_check }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue