From 8a29d94084b75e03cc9452661f6372a1bd44d209 Mon Sep 17 00:00:00 2001 From: Seth Chisamore Date: Thu, 25 Oct 2018 15:39:30 -0400 Subject: 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 --- spec/functional/http/simple_spec.rb | 4 ++-- 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 -- cgit v1.2.1