Skip to content

Commit

Permalink
wait for child proces to die before re-acquiring resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Sep 17, 2015
1 parent bfccd1e commit ff63793
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/resource_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def test_acquire_releases_on_kill
end

Process.kill("KILL", pid)
Process.waitpid(pid)
resource.acquire { acquired = true }
assert acquired

Expand Down

0 comments on commit ff63793

Please sign in to comment.