mirror of
https://github.com/inspec/inspec
synced 2024-11-24 05:33:17 +00:00
adaf2bc364
This speeds up parallel unit test runs from a very consistent 2:49 to a very consistent 1:53, or a 33% reduction. Signed-off-by: Ryan Davis <zenspider@chef.io>
10 lines
312 B
Ruby
10 lines
312 B
Ruby
|
|
require 'helper'
|
|
|
|
describe 'Inspec::Resources::LimitsConf' do
|
|
it 'verify limits.conf config parsing' do
|
|
resource = load_resource('limits_conf')
|
|
_(resource.send('*')).must_equal [['soft', 'core', '0'], ['hard', 'rss', '10000']]
|
|
_(resource.send('ftp')).must_equal [["hard", "nproc", "0"]]
|
|
end
|
|
end
|