1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

sleep thread until assertions

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2015-06-13 08:56:11 +00:00
parent 92ca9f0696
commit 29513dbc47

View file

@ -1048,9 +1048,11 @@ q.pop
end
def test_thread_name
t = Thread.start { }
t = Thread.start { sleep }
t.name = 'foo'
assert_equal 'foo', t.name
ensure
t.kill
t.join
end
end