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

* test/ruby/test_time.rb: extended the timeout span and reduce the loop count.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2014-03-25 07:57:35 +00:00
parent d7442c32df
commit 602a9c1416

View file

@ -311,12 +311,12 @@ class TestTime < Test::Unit::TestCase
end
def test_marshal_zone_gc
assert_separately(%w(--disable-gems), <<-'end;')
assert_separately(%w(--disable-gems), <<-'end;', timeout: 30)
ENV["TZ"] = "JST-9"
s = Marshal.dump(Time.now)
t = Marshal.load(s)
n = 0
done = 1000000
done = 100000
while t.zone.dup == "JST" && n < done
n += 1
end