summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-28 14:51:23 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-28 14:54:00 +0900
commitc52dad0ecf0b8d87afb570d7dde508fe78d145d4 (patch)
treeb5debab0984e17d4dda628d6ebc0bb0d130c1c7d
parent023360ee4b1954a54b4d87d21cfc0eb5d662d5c5 (diff)
Wait for the helper thread to terminate
-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 8854b59ccc..9d07bf75f7 100644
--- a/test/monitor/test_monitor.rb
+++ b/test/monitor/test_monitor.rb
@@ -172,6 +172,8 @@ class TestMonitor < Test::Unit::TestCase
assert @monitor.mon_locked?
assert @monitor.mon_owned?
end
+ ensure
+ th.join
end
def test_cond