about summary refs log tree commit homepage
path: root/test/test_linux.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_linux.rb')
-rw-r--r--test/test_linux.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_linux.rb b/test/test_linux.rb
index 7744c61..5dc5f5b 100644
--- a/test/test_linux.rb
+++ b/test/test_linux.rb
@@ -138,7 +138,7 @@ class TestLinux < Test::Unit::TestCase
       fork do
         rda.close
         wrb.close
-        socks = nr_sock.times.map { s.accept }
+        socks = (1..nr_sock).times.map { s.accept }
         wra.syswrite('.')
         wra.close
         rdb.sysread(1) # wait for parent to nuke us
@@ -149,7 +149,7 @@ class TestLinux < Test::Unit::TestCase
       fork do
         rda.close
         wrb.close
-        socks = nr_sock.times.map { TCPSocket.new(TEST_ADDR, port) }
+        socks = (1..nr_sock).times.map { TCPSocket.new(TEST_ADDR, port) }
         wra.syswrite('.')
         wra.close
         rdb.sysread(1) # wait for parent to nuke us