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-31 13:50:07 -0700
commit9c451e3e44c44fa716b0ffb188d487221b6d9f96 (patch)
treeb945974accd1e91842ae4e0e822edc911a885970
parent0c08fb5afd066b7ebf0c625e43bedc1e30c1b758 (diff)
downloadchef-9c451e3e44c44fa716b0ffb188d487221b6d9f96.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