From a267b95f9c7e883f8edbdb1db682bef7d5f70b1b Mon Sep 17 00:00:00 2001 From: Seth Thomas Date: Thu, 2 Jul 2015 15:43:29 -0700 Subject: [PATCH] Rubocop hates freedom --- recipes/sysctl.rb | 8 ++++---- test/integration/sysctl/serverspec/sysctl_spec.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes/sysctl.rb b/recipes/sysctl.rb index 2ea4e4f..1ce0332 100755 --- a/recipes/sysctl.rb +++ b/recipes/sysctl.rb @@ -10,10 +10,10 @@ node.default['sysctl']['params']['net']['core'].tap do |core| core['somaxconn'] = 40_000 - core['wmem_default'] = 8388608 - core['wmem_max'] = 8388608 - core['rmem_default'] = 8388608 - core['rmem_max'] = 8388608 + core['wmem_default'] = 8_388_608 + core['wmem_max'] = 8_388_608 + core['rmem_default'] = 8_388_608 + core['rmem_max'] = 8_388_608 core['netdev_max_backlog'] = 10_000 end diff --git a/test/integration/sysctl/serverspec/sysctl_spec.rb b/test/integration/sysctl/serverspec/sysctl_spec.rb index e8c887f..235db27 100755 --- a/test/integration/sysctl/serverspec/sysctl_spec.rb +++ b/test/integration/sysctl/serverspec/sysctl_spec.rb @@ -71,7 +71,7 @@ end persistence_file = case host_inventory['platform'] - when 'redhat', 'fedora', 'amazon','debian', 'ubuntu' + when 'redhat', 'fedora', 'amazon', 'debian', 'ubuntu' '/etc/sysctl.d/99-chef-attributes.conf' else '/etc/sysctl.conf'