aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-08-18 15:45:46 +0800
committerXu Cheng2015-08-20 15:47:42 +0800
commit72a11b7d1166d14b82e1124920a0c80586e7c057 (patch)
treeaa8b720cc164acbc29441f0eb0d7f8d720f82135 /Library
parenta628c15afde8fb1bcf441b9737df908821fc6873 (diff)
downloadbrew-72a11b7d1166d14b82e1124920a0c80586e7c057.tar.bz2
test_migrator: fix lock file leak
Closes Homebrew/homebrew#43025. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_migrator.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_migrator.rb b/Library/Homebrew/test/test_migrator.rb
index b22184888..236c7e00d 100644
--- a/Library/Homebrew/test/test_migrator.rb
+++ b/Library/Homebrew/test/test_migrator.rb
@@ -93,6 +93,8 @@ class MigratorTests < Homebrew::TestCase
rmtree HOMEBREW_PREFIX/"opt" if (HOMEBREW_PREFIX/"opt").directory?
# What to do with pin?
@new_f.unpin
+
+ FormulaLock::LOCKDIR.children.each(&:unlink)
end
def test_move_cellar