From ff63793c317c235308316a8418413b5e67944232 Mon Sep 17 00:00:00 2001 From: Charlie Somerville Date: Thu, 17 Sep 2015 15:35:32 +1000 Subject: [PATCH] wait for child proces to die before re-acquiring resource --- test/resource_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/resource_test.rb b/test/resource_test.rb index def49f093..f01400ac6 100644 --- a/test/resource_test.rb +++ b/test/resource_test.rb @@ -117,6 +117,7 @@ def test_acquire_releases_on_kill end Process.kill("KILL", pid) + Process.waitpid(pid) resource.acquire { acquired = true } assert acquired