From 118713bd3c9935161f88addad8717a6de9a411ce Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 Dec 2019 17:32:57 +0000 Subject: test_syssend: avoid warning on cleanup We don't want to clutter up logs with warnings for cross-thread IO#close --- test/test_syssend.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-24-ge0c7