From 72a11b7d1166d14b82e1124920a0c80586e7c057 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 18 Aug 2015 15:45:46 +0800 Subject: test_migrator: fix lock file leak Closes Homebrew/homebrew#43025. Signed-off-by: Xu Cheng --- Library/Homebrew/test/test_migrator.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3