@ -57,7 +57,7 @@ describe GRPC::ActiveCall do
describe 'restricted view methods' do
describe 'restricted view methods' do
before ( :each ) do
before ( :each ) do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
@client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -87,7 +87,7 @@ describe GRPC::ActiveCall do
describe '#remote_send' do
describe '#remote_send' do
it 'allows a client to send a payload to the server' do
it 'allows a client to send a payload to the server' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
@client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -111,7 +111,7 @@ describe GRPC::ActiveCall do
it 'marshals the payload using the marshal func' do
it 'marshals the payload using the marshal func' do
call = make_test_call
call = make_test_call
ActiveCall . client_invoke ( call , @client_queue , deadline )
ActiveCall . client_invoke ( call , @client_queue )
marshal = proc { | x | 'marshalled:' + x }
marshal = proc { | x | 'marshalled:' + x }
client_call = ActiveCall . new ( call , @client_queue , marshal ,
client_call = ActiveCall . new ( call , @client_queue , marshal ,
@pass_through , deadline )
@pass_through , deadline )
@ -134,8 +134,7 @@ describe GRPC::ActiveCall do
describe '#client_invoke' do
describe '#client_invoke' do
it 'sends keywords as metadata to the server when the are present' do
it 'sends keywords as metadata to the server when the are present' do
call = make_test_call
call = make_test_call
ActiveCall . client_invoke ( call , @client_queue , deadline ,
ActiveCall . client_invoke ( call , @client_queue , k1 : 'v1' , k2 : 'v2' )
k1 : 'v1' , k2 : 'v2' )
recvd_rpc = @server . request_call ( @server_queue , @server_tag , deadline )
recvd_rpc = @server . request_call ( @server_queue , @server_tag , deadline )
recvd_call = recvd_rpc . call
recvd_call = recvd_rpc . call
expect ( recvd_call ) . to_not be_nil
expect ( recvd_call ) . to_not be_nil
@ -148,7 +147,7 @@ describe GRPC::ActiveCall do
describe '#remote_read' do
describe '#remote_read' do
it 'reads the response sent by a server' do
it 'reads the response sent by a server' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -161,7 +160,7 @@ describe GRPC::ActiveCall do
it 'saves no metadata when the server adds no metadata' do
it 'saves no metadata when the server adds no metadata' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -176,7 +175,7 @@ describe GRPC::ActiveCall do
it 'saves metadata add by the server' do
it 'saves metadata add by the server' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -192,7 +191,7 @@ describe GRPC::ActiveCall do
it 'get a nil msg before a status when an OK status is sent' do
it 'get a nil msg before a status when an OK status is sent' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -209,7 +208,7 @@ describe GRPC::ActiveCall do
it 'unmarshals the response using the unmarshal func' do
it 'unmarshals the response using the unmarshal func' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
unmarshal = proc { | x | 'unmarshalled:' + x }
unmarshal = proc { | x | 'unmarshalled:' + x }
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
unmarshal , deadline ,
unmarshal , deadline ,
@ -234,7 +233,7 @@ describe GRPC::ActiveCall do
it 'the returns an enumerator that can read n responses' do
it 'the returns an enumerator that can read n responses' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -252,7 +251,7 @@ describe GRPC::ActiveCall do
it 'the returns an enumerator that stops after an OK Status' do
it 'the returns an enumerator that stops after an OK Status' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -275,7 +274,7 @@ describe GRPC::ActiveCall do
describe '#writes_done' do
describe '#writes_done' do
it 'finishes ok if the server sends a status response' do
it 'finishes ok if the server sends a status response' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -291,7 +290,7 @@ describe GRPC::ActiveCall do
it 'finishes ok if the server sends an early status response' do
it 'finishes ok if the server sends an early status response' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )
@ -307,7 +306,7 @@ describe GRPC::ActiveCall do
it 'finishes ok if writes_done is true' do
it 'finishes ok if writes_done is true' do
call = make_test_call
call = make_test_call
md_tag = ActiveCall . client_invoke ( call , @client_queue , deadline )
md_tag = ActiveCall . client_invoke ( call , @client_queue )
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
client_call = ActiveCall . new ( call , @client_queue , @pass_through ,
@pass_through , deadline ,
@pass_through , deadline ,
metadata_tag : md_tag )
metadata_tag : md_tag )