test/server_test.rb in rexec-1.4.0 vs test/server_test.rb in rexec-1.4.1
- old
+ new
@@ -33,11 +33,11 @@
sobj = [1, 2, "three", 4]
stderr_text = "There was no error.. maybe?"
connection_started = false
object_received = false
- RExec::start_server(code.read, "ruby", :passthrough => []) do |conn, pid|
+ RExec::start_server(code.read, "ruby", :passthrough => []) do |conn, task|
connection_started = true
conn.send_object([:bounce, sobj])
assert_equal sobj, conn.receive_object
@@ -64,11 +64,11 @@
connection_started = false
code = Pathname.new(__FILE__).dirname + "client.rb"
test_obj = [1, 2, 3, 4, "five"]
- RExec::start_server(code.read, "/bin/sh -c ruby", :passthrough => []) do |conn, pid|
+ RExec::start_server(code.read, "/bin/sh -c ruby", :passthrough => []) do |conn, task|
connection_started = true
conn.send_object([:bounce, test_obj])
assert_equal test_obj, conn.receive_object
@@ -82,10 +82,10 @@
connection_started = false
code = Pathname.new(__FILE__).dirname + "client.rb"
test_obj = [1, 2, 3, 4, "five"]
- conn, pid = RExec::start_server(code.read, "/bin/sh -c ruby", :passthrough => [])
+ conn, task = RExec::start_server(code.read, "/bin/sh -c ruby", :passthrough => [])
conn.send_object([:bounce, test_obj])
assert_equal test_obj, conn.receive_object
conn.stop