mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_addrinfo.rb: relax memory usage criterion
* test/socket/test_addrinfo.rb (test_marshal_memory_leak): relax the criterion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f40379378a
commit
14d10e054f
1 changed files with 3 additions and 3 deletions
|
@ -470,13 +470,13 @@ class TestSocketAddrinfo < Test::Unit::TestCase
|
|||
|
||||
def test_marshal_memory_leak
|
||||
bug11051 = '[ruby-dev:48923] [Bug #11051]'
|
||||
assert_no_memory_leak(%w[-rsocket], <<-prep, <<-code, bug11051, rss: true, limit: 1.1)
|
||||
assert_no_memory_leak(%w[-rsocket], <<-PREP, <<-CODE, bug11051, rss: true)
|
||||
d = Marshal.dump(Addrinfo.tcp("127.0.0.1", 80))
|
||||
1000.times {Marshal.load(d)}
|
||||
prep
|
||||
PREP
|
||||
GC.start
|
||||
20_000.times {Marshal.load(d)}
|
||||
code
|
||||
CODE
|
||||
end
|
||||
|
||||
if Socket.const_defined?("AF_INET6") && Socket::AF_INET6.is_a?(Integer)
|
||||
|
|
Loading…
Add table
Reference in a new issue