diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-09-09 14:58:27 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-09-09 14:58:27 -0700 |
commit | e3001f0e34ff33516d71d3948223a515c07903ca (patch) | |
tree | 3b4ff75c77ca50000eb4872970f5124147ba4e2d /spec | |
parent | b6c2173bf578a8f1b44aeea2bc5eef9288e48964 (diff) | |
download | chef-e3001f0e34ff33516d71d3948223a515c07903ca.tar.gz |
Allow cpu_quota values > 100
Turns out on multi-core boxes these are valid.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/chef_client_systemd_timer_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource/chef_client_systemd_timer_spec.rb b/spec/unit/resource/chef_client_systemd_timer_spec.rb index c3d69fcae0..dfe01973fb 100644 --- a/spec/unit/resource/chef_client_systemd_timer_spec.rb +++ b/spec/unit/resource/chef_client_systemd_timer_spec.rb @@ -35,8 +35,8 @@ describe Chef::Resource::ChefClientSystemdTimer do it "validates the cpu_quota property input" do expect { resource.cpu_quota(0) }.to raise_error(Chef::Exceptions::ValidationFailed) - expect { resource.cpu_quota(101) }.to raise_error(Chef::Exceptions::ValidationFailed) expect { resource.cpu_quota(50) }.not_to raise_error + expect { resource.cpu_quota(101) }.not_to raise_error end it "builds a default value for chef_binary_path dist values" do |