diff options
author | Seth Chisamore <schisamo@chef.io> | 2018-10-25 15:39:30 -0400 |
---|---|---|
committer | Seth Chisamore <schisamo@chef.io> | 2018-10-25 15:39:30 -0400 |
commit | 8a29d94084b75e03cc9452661f6372a1bd44d209 (patch) | |
tree | 13b192d159f81cfced4ceeb13da2b1386d2bb3ac | |
parent | 444647af82db691f47efeaa0bd58ee68ac48c201 (diff) | |
download | chef-8a29d94084b75e03cc9452661f6372a1bd44d209.tar.gz |
Add some retry/delay in HTTP functional tests
We are seeing some failures when running the functional tests on our new
Anka-based macOS testers. This small tweaks to the `Chef::Config` used
in the specs fix the issues.
Signed-off-by: Seth Chisamore <schisamo@chef.io>
-rw-r--r-- | spec/functional/http/simple_spec.rb | 4 | ||||
-rw-r--r-- | spec/functional/resource/remote_file_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/http/simple_spec.rb b/spec/functional/http/simple_spec.rb index 562c037bb0..e835bb0c79 100644 --- a/spec/functional/http/simple_spec.rb +++ b/spec/functional/http/simple_spec.rb @@ -32,8 +32,8 @@ describe Chef::HTTP::Simple do before(:each) do Chef::Config[:rest_timeout] = 2 - Chef::Config[:http_retry_delay] = 0 - Chef::Config[:http_retry_count] = 0 + Chef::Config[:http_retry_delay] = 1 + Chef::Config[:http_retry_count] = 2 end after(:all) do diff --git a/spec/functional/resource/remote_file_spec.rb b/spec/functional/resource/remote_file_spec.rb index a121cbb1f3..44a7a46d68 100644 --- a/spec/functional/resource/remote_file_spec.rb +++ b/spec/functional/resource/remote_file_spec.rb @@ -29,8 +29,8 @@ describe Chef::Resource::RemoteFile do @old_file_cache = Chef::Config[:file_cache_path] Chef::Config[:file_cache_path] = file_cache_path Chef::Config[:rest_timeout] = 2 - Chef::Config[:http_retry_delay] = 0 - Chef::Config[:http_retry_count] = 0 + Chef::Config[:http_retry_delay] = 1 + Chef::Config[:http_retry_count] = 2 end after(:each) do |