diff options
-rw-r--r-- | test/test_syssend.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_syssend.rb b/test/test_syssend.rb index 7d2511a..a722462 100644 --- a/test/test_syssend.rb +++ b/test/test_syssend.rb @@ -37,6 +37,8 @@ class TestKgioSyssend < Test::Unit::TestCase # blocking th = Thread.new { loop { acc.kgio_syssend("ZZZZ", 0) } } assert_nil th.join(0.1) + th.kill + assert th.join(10), 'thread should be killed' ensure [ srv, acc, client ].each { |io| io.close if io } end |