From 732f1339400ee98c6b8c3af7bf6af1752e93fc53 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 10 May 2015 11:21:21 +0900 Subject: [PATCH] [test] Make sure to kill background process --- test/test_go.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_go.rb b/test/test_go.rb index 8c31c91..b6b37dc 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -661,7 +661,8 @@ module CompletionTest tmux.send_keys 'C-L' lines[-1] == "kill #{pid}" end - tmux.send_keys :Enter + ensure + Process.kill 'KILL', pid.to_i rescue nil if pid end end