Scaled back the massive allocation of IPs from 11 /24s to 4.
Otherwise I get Error: test_massively_parallel_IP_address_addition(TestAddr::TestWithNetlinkRouteSocket) Errno::EMFILE: Too many open files - socket(2) lib/linux/netlink/nlsocket.rb:61:in `initialize' lib/linux/netlink/nlsocket.rb:61:in `new' lib/linux/netlink/nlsocket.rb:61:in `initialize' lib/linux/netlink/route.rb:21:in `initialize' test/t_route.rb:54:in `new' test/t_route.rb:54:in `block (4 levels) in <class:TestAddr>'
This commit is contained in:
@@ -47,7 +47,7 @@ class TestAddr < Test::Unit::TestCase
|
||||
link = @ip.link.list.find{|x| x.ifname == @ifname}
|
||||
return if link.nil?
|
||||
|
||||
ips = (10..20).map {|y| (1..254).map {|z| "10.100.#{y}.#{z}" } }.flatten.compact
|
||||
ips = (10..13).map {|y| (1..254).map {|z| "10.100.#{y}.#{z}" } }.flatten.compact
|
||||
|
||||
threads = ips.map {|ip|
|
||||
Thread.new {
|
||||
|
Reference in New Issue
Block a user