From 06d78d4168bf1e7c2a989391af0e0912e6d8e361 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 2 Apr 2015 11:52:56 +0100 Subject: [PATCH] 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 ' --- test/t_route.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/t_route.rb b/test/t_route.rb index e581f94..08612cf 100644 --- a/test/t_route.rb +++ b/test/t_route.rb @@ -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 {