diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-14 22:03:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-14 22:03:24 +0000 |
commit | 0b84ee8f7bb6e62f404cf39e50ffbc761300eef4 (patch) | |
tree | 037f842d1b26446254d2eabb65271ff6fe13d7ff /test/ruby/lbtest.rb | |
parent | 8d0b8c879fc2540ae2803cd46f16ca0c4e99e2f7 (diff) | |
download | ruby-0b84ee8f7bb6e62f404cf39e50ffbc761300eef4.tar.gz |
test_thread.rb: timing issues
* test/ruby/test_thread.rb: get rid of timing issues and reduce
sleep times.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/lbtest.rb')
-rw-r--r-- | test/ruby/lbtest.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/lbtest.rb b/test/ruby/lbtest.rb index 225e9b2f1a..ae047fb187 100644 --- a/test/ruby/lbtest.rb +++ b/test/ruby/lbtest.rb @@ -35,7 +35,7 @@ lb = LocalBarrier.new(n) (n - 1).times do |i| Thread.start do - sleep((rand(n) + 1) / 10.0) + sleep((rand(n) + 1) / 100.0) print "#{i}: done\n" lb.sync print "#{i}: cont\n" |