aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/spec/generic/active_call_spec.rb
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2016-08-11 15:21:43 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2016-08-11 15:21:43 -0700
commit17d5c071153b540ee502712a4b0521b911d148bf (patch)
treeeacb76536bda049dd5b468abcd3a7672a0220e1e /src/ruby/spec/generic/active_call_spec.rb
parenta9bc030a3a9eb876c4ca00b40d68013ed91a8d66 (diff)
use sent flag only under mutex and dont fail in send_initial_metadata
Diffstat (limited to 'src/ruby/spec/generic/active_call_spec.rb')
-rw-r--r--src/ruby/spec/generic/active_call_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ruby/spec/generic/active_call_spec.rb b/src/ruby/spec/generic/active_call_spec.rb
index 79f739e8fa..48bc61e494 100644
--- a/src/ruby/spec/generic/active_call_spec.rb
+++ b/src/ruby/spec/generic/active_call_spec.rb
@@ -221,7 +221,7 @@ describe GRPC::ActiveCall do
@client_call.send_initial_metadata
end
- it 'explicit sending fails if metadata has already been sent' do
+ it 'explicit sending does nothing if metadata has already been sent' do
call = make_test_call
@client_call = ActiveCall.new(call,
@@ -235,7 +235,7 @@ describe GRPC::ActiveCall do
@client_call.send_initial_metadata
end
- expect { blk.call }.to raise_error
+ expect { blk.call }.to_not raise_error
end
end