summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-25 13:24:23 -0700
committerGitHub <noreply@github.com>2018-10-25 13:24:23 -0700
commit78d6879ab66be17de57853961f42dcafea733b3a (patch)
treeba5da27ce195ff87f10005a4c95052772fb54cd2
parent9e854b4d51a2c410aaa5d816d0749735adaccf50 (diff)
parent8a29d94084b75e03cc9452661f6372a1bd44d209 (diff)
downloadchef-78d6879ab66be17de57853961f42dcafea733b3a.tar.gz
Merge pull request #7780 from chef/schisamo/macos-mojave
Add some retry/delay in HTTP functional tests
-rw-r--r--spec/functional/http/simple_spec.rb4
-rw-r--r--spec/functional/resource/remote_file_spec.rb4
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