[test] Make sure to kill background process

This commit is contained in:
Junegunn Choi committed 2015-05-10 11:24:54 +09:00
1 parent 5dc4df9570
commit 732f133940
1 file changed
+2 -1
+2 -1
View File
@@ -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