From b3348ddd4d921b602808ab1fced5fe3833d7894e Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 14 Dec 2013 22:34:47 +0000 Subject: [PATCH] envutil.rb: reduce wait * test/ruby/envutil.rb (EnvUtil.diagnostic_reports): reduce watching interval. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/envutil.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 5e665e54dd..079658bfbd 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -166,8 +166,8 @@ module EnvUtil timeformat = DIAGNOSTIC_REPORTS_TIMEFORMAT pat = "#{path}/#{cmd}_#{now.strftime(timeformat)}[-_]*.crash" first = true - 3.times do - first ? (first = false) : sleep(1) + 30.times do + first ? (first = false) : sleep(0.1) Dir.glob(pat) do |name| log = File.read(name) rescue next if /\AProcess:\s+#{cmd} \[#{pid}\]$/ =~ log