aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/spec
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2016-04-05 21:33:45 +0000
committerGravatar Yang Gao <yangg@google.com>2016-04-05 21:33:45 +0000
commitdb566d21292e089232663092f31bf27efa3d0391 (patch)
tree62d6a97c4bd136629a6d423ee917b693d4731f30 /src/ruby/spec
parentb49a1e5849529bdd769587dbd798edfabe516d5f (diff)
parentabb4f5f3ab911d0b0c5bc7d76c27592a1656bd12 (diff)
Merge branch 'master' into hpack_table
Diffstat (limited to 'src/ruby/spec')
-rw-r--r--src/ruby/spec/generic/rpc_server_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ruby/spec/generic/rpc_server_spec.rb b/src/ruby/spec/generic/rpc_server_spec.rb
index e16ba60387..e688057cb1 100644
--- a/src/ruby/spec/generic/rpc_server_spec.rb
+++ b/src/ruby/spec/generic/rpc_server_spec.rb
@@ -426,7 +426,7 @@ describe GRPC::RpcServer do
threads.each(&:join)
end
- it 'should return UNAVAILABLE on too many jobs', server: true do
+ it 'should return RESOURCE_EXHAUSTED on too many jobs', server: true do
opts = {
a_channel_arg: 'an_arg',
server_override: @server,
@@ -449,7 +449,8 @@ describe GRPC::RpcServer do
begin
stub.an_rpc(req)
rescue GRPC::BadStatus => e
- one_failed_as_unavailable = e.code == StatusCodes::UNAVAILABLE
+ one_failed_as_unavailable =
+ e.code == StatusCodes::RESOURCE_EXHAUSTED
end
end
end