about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-12-14 17:32:57 +0000
committerEric Wong <e@80x24.org>2019-12-14 17:32:57 +0000
commit118713bd3c9935161f88addad8717a6de9a411ce (patch)
tree2400198109881b3ac92817c3c8ebbebf4a0e42da
parente78976a65f6e7aea896e176c697b0181d52c6489 (diff)
downloadkgio-118713bd3c9935161f88addad8717a6de9a411ce.tar.gz
We don't want to clutter up logs with warnings for cross-thread
IO#close
-rw-r--r--test/test_syssend.rb2
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