diff options
author | Yang Gao <yangg@google.com> | 2016-04-05 21:33:45 +0000 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2016-04-05 21:33:45 +0000 |
commit | db566d21292e089232663092f31bf27efa3d0391 (patch) | |
tree | 62d6a97c4bd136629a6d423ee917b693d4731f30 /src/ruby/spec/generic/rpc_server_spec.rb | |
parent | b49a1e5849529bdd769587dbd798edfabe516d5f (diff) | |
parent | abb4f5f3ab911d0b0c5bc7d76c27592a1656bd12 (diff) |
Merge branch 'master' into hpack_table
Diffstat (limited to 'src/ruby/spec/generic/rpc_server_spec.rb')
-rw-r--r-- | src/ruby/spec/generic/rpc_server_spec.rb | 5 |
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 |