about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/player_integration.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/player_integration.rb b/test/player_integration.rb
index 5ca3e43..57ee3af 100644
--- a/test/player_integration.rb
+++ b/test/player_integration.rb
@@ -74,8 +74,10 @@ module PlayerIntegration
   end
 
   def teardown
-    Process.kill(:TERM, @pid) if @pid
-    Process.waitall
+    if @pid
+      Process.kill(:TERM, @pid)
+      Process.waitpid2(@pid)
+    end
     refute File.exist?(@sock_path)
     @state_tmp.close!
     @out.close! if @out