about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-07-10 20:59:23 +0000
committerEric Wong <e@80x24.org>2018-11-28 01:40:45 +0000
commit2c22379e811f9ab3f2692d459c075bb193f05e89 (patch)
treee12a8fd5666b30f4c3be5e6d87909dbcd644cb8e
parent7329eab49ef73521be6aaf03d32d0403f60b432c (diff)
downloadcmogstored-2c22379e811f9ab3f2692d459c075bb193f05e89.tar.gz
Not sure if it's worth supporting 1.8, anymore, but parts
of the Ruby VM test and benchmark suite still remain
1.8-compatible...
-rw-r--r--test/inherit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/inherit.rb b/test/inherit.rb
index ebbcf4c..365f4b7 100644
--- a/test/inherit.rb
+++ b/test/inherit.rb
@@ -152,10 +152,11 @@ class TestInherit < Test::Unit::TestCase
     mport = mgmt.addr[1]
     cmd = %W(cmogstored --docroot=#@tmpdir --httplisten=#@host:#@port
              --mgmtlisten=#@host:#{mport} --maxconns=100)
+    cmd << { 3 => mgmt.fileno, 4 => @srv.fileno }
     @pid = fork do
       ENV['LISTEN_PID'] = "#$$"
       ENV['LISTEN_FDS'] = '2'
-      exec(*cmd, 3 => mgmt.fileno, 4 => @srv.fileno)
+      exec(*cmd)
     end
 
     # just ensure HTTP works after being inherited