diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-13 02:24:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-13 02:24:07 +0000 |
commit | 6dfe90f72d7de6b555c840460c46f99fd54739cb (patch) | |
tree | 1fddb2b3b52b442046311c06cb26c9f623aed0ac /test/ruby | |
parent | bc13640febac38b37842474bc07b33d28fb5f972 (diff) | |
download | ruby-6dfe90f72d7de6b555c840460c46f99fd54739cb.tar.gz |
test_thread.rb: wait for the thread to sleep
* test/ruby/test_thread.rb (test_thread_name): wait for the status
of the subject thread to fix, so that the status does not change
between two inspect methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_thread.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index f8036795dc..e13b9f578c 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -1067,6 +1067,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' |