summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-03-05 13:54:12 -0800
committerTim Smith <tsmith84@gmail.com>2020-03-16 13:03:35 -0700
commit047fa5cdbf86e7ed07be71257af1e1a75a51e218 (patch)
tree946c88e5222182a098b86ccc754866196aa15e1f
parentf893e97b4aded32b0f60dd6416d60072483bf3c8 (diff)
downloadchef-047fa5cdbf86e7ed07be71257af1e1a75a51e218.tar.gz
add comment
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-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 5410d1941c..08a2c84e90 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