Fix file leak in lock tests
This commit is contained in:
parent
f25f6fbb39
commit
35b9a00706
@ -9,6 +9,7 @@ class FormulaLockTests < Homebrew::TestCase
|
|||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
@lock.unlock
|
@lock.unlock
|
||||||
|
FormulaLock::LOCKDIR.children.each(&:unlink)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_locking_file_with_existing_lock_raises_error
|
def test_locking_file_with_existing_lock_raises_error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user