Skip to content

Commit

Permalink
Add wait after kill
Browse files Browse the repository at this point in the history
  • Loading branch information
david942j committed Aug 23, 2018
1 parent 764ada5 commit bda6f8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/tubes/serialtube_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def test_raise
skip_windows
open_pair do |_file, serial, thread|
::Process.kill('SIGTERM', thread.pid)
# ensure the process has been killed
thread.value
assert_raises(Pwnlib::Errors::EndOfTubeError) { serial.puts('a') }
end
open_pair do |_file, serial|
Expand Down

0 comments on commit bda6f8b

Please sign in to comment.