summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <454857+lamont-granquist@users.noreply.github.com>2021-12-17 22:30:11 -0800
committerGitHub <noreply@github.com>2021-12-17 22:30:11 -0800
commitab42cac6b2e0e4700d4c60a70cc343fa4547e7e9 (patch)
tree839dc5b9e5e42615fc56bff22404aaff417bf170
parente0ecb14c3ad23c3407a85f7f792bf495f7a917a1 (diff)
parentc47a6434fb97870ade8759dd0069efbe690c5e1d (diff)
downloadchef-ab42cac6b2e0e4700d4c60a70cc343fa4547e7e9.tar.gz
Merge pull request #12392 from chef/lcg/whatever-i-dont-know
-rw-r--r--spec/functional/resource/yum_package_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/functional/resource/yum_package_spec.rb b/spec/functional/resource/yum_package_spec.rb
index 7c5fc28fdf..76203a8b65 100644
--- a/spec/functional/resource/yum_package_spec.rb
+++ b/spec/functional/resource/yum_package_spec.rb
@@ -47,6 +47,12 @@ describe Chef::Resource::YumPackage, :requires_root, external: exclude_test do
shell_out!("yum -y install yum-utils")
end
+ # XXX: this is necessary for RHEL6 due to a file descriptor leak so we need to bounce the
+ # python helper periodically before every top level context to get more FDs.
+ before(:all) do
+ Chef::Provider::Package::Yum::PythonHelper.instance.restart
+ end
+
before(:each) do
# force errors to fail and not retry
ENV["YUM_HELPER_NO_RETRIES"] = "true"