summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-03-05 13:54:12 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2020-03-05 13:54:12 -0800
commit5f2f7f35aa00816181714ee35f4792b3e786f749 (patch)
treea1a8a011ad0d04dbb11b436e839692117d5d55a5 /spec/functional
parentff34a09183fdb7dd5a66d75ad90666394bdff55e (diff)
downloadchef-5f2f7f35aa00816181714ee35f4792b3e786f749.tar.gz
add comment
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/run_lock_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/functional/run_lock_spec.rb b/spec/functional/run_lock_spec.rb
index f11fa5324c..eecdbbe6c8 100644
--- a/spec/functional/run_lock_spec.rb
+++ b/spec/functional/run_lock_spec.rb
@@ -404,6 +404,8 @@ describe Chef::RunLock do
example.log_event("#{name}.stop finished (pid #{pid} wasn't running)")
end
end
+
+ # close the IO.pipes so we don't leak them as open filehandles
@read_from_process.close rescue nil
@write_to_tests.close rescue nil
@read_from_tests.close rescue nil