summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_thread.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index c90c369bb7..6ad33b83d4 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -1052,6 +1052,7 @@ q.pop
def test_thread_name
t = Thread.start {sleep}
+ sleep 0.001 until t.stop?
assert_nil t.name
s = t.inspect
t.name = 'foo'