From c974ee1abe5df5a4bb97264e608afbd134c77652 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Sat, 23 Dec 2023 05:22:52 +0900 Subject: ensure to restart antoher thread --- test/monitor/test_monitor.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/monitor/test_monitor.rb') 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]) -- cgit v1.2.3