diff --git a/test/resource_test.rb b/test/resource_test.rb index def49f093..b1909c19d 100644 --- a/test/resource_test.rb +++ b/test/resource_test.rb @@ -117,10 +117,9 @@ def test_acquire_releases_on_kill end Process.kill("KILL", pid) + Process.waitpid(pid) resource.acquire { acquired = true } assert acquired - - Process.wait ensure FileUtils.rm_f(path) if path end