diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-04-11 20:21:59 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-04-11 20:22:17 -0700 |
commit | 957ddbbdc88ff0d644692935f31794a9efb86598 (patch) | |
tree | 6fe917369ff465118a2069918e023bb6b9a52025 /test/test_linux.rb | |
parent | da0d9cbbd9f6cf2e68274dd5c2204b105f8b030d (diff) | |
download | raindrops-957ddbbdc88ff0d644692935f31794a9efb86598.tar.gz |
Diffstat (limited to 'test/test_linux.rb')
-rw-r--r-- | test/test_linux.rb | 4 |
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 |