diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-05-10 11:21:21 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-05-10 11:24:54 +0900 |
commit | 732f1339400ee98c6b8c3af7bf6af1752e93fc53 (patch) | |
tree | 0c040294c434a7915c415f3539433bd65d6547c2 | |
parent | 5dc4df9570e2bd86e3e5f75e7b48943bfcfe6345 (diff) |
[test] Make sure to kill background process
-rw-r--r-- | test/test_go.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 8c31c91e..b6b37dc6 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 |