summaryrefslogtreecommitdiff
path: root/test/monitor/test_monitor.rb
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2023-12-23 05:22:52 +0900
committerKoichi Sasada <ko1@atdot.net>2023-12-23 05:56:02 +0900
commitc974ee1abe5df5a4bb97264e608afbd134c77652 (patch)
treeb03596f2f7fa1e357d72c937b7e76c52581c06ce /test/monitor/test_monitor.rb
parentbbfc262c994f84801abfb1302cf6142dfee50adf (diff)
ensure to restart antoher thread
Diffstat (limited to 'test/monitor/test_monitor.rb')
-rw-r--r--test/monitor/test_monitor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/monitor/test_monitor.rb b/test/monitor/test_monitor.rb
index 8ff6d006df..4c55afca6c 100644
--- a/test/monitor/test_monitor.rb
+++ b/test/monitor/test_monitor.rb
@@ -300,6 +300,8 @@ class TestMonitor < Test::Unit::TestCase
result4 = cond.wait
assert_equal(true, result4)
assert_equal("bar", c)
+ ensure
+ queue3.enq(nil)
end
end
assert_join_threads([th, th2])