summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_thread.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 48a6bd2e38..d076494cdf 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -646,8 +646,8 @@ class TestThread < Test::Unit::TestCase
end
}
}
- assert_raise(e) {r = :wait; sleep 1}
- assert_raise(RuntimeError) {th.join(0)}
+ assert_raise(e) {r = :wait; sleep 0.2}
+ assert_raise(RuntimeError) {th.join(0.2)}
ensure
th.kill
end