From 14d10e054ff451f26b5e4ad658f8e44b2d0fa8dd Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 10 Apr 2015 01:02:55 +0000 Subject: 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 --- test/socket/test_addrinfo.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb index 1416553c9b..b83118f5c7 100644 --- a/test/socket/test_addrinfo.rb +++ b/test/socket/test_addrinfo.rb @@ -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) -- cgit v1.2.3