diff options
author | murgatroid99 <mlumish@google.com> | 2016-05-19 17:58:33 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2016-05-19 17:58:33 -0700 |
commit | ae34a370e321f2dc24ae9b391fe03bbd09cb881e (patch) | |
tree | 97f86f4b9a2be167bcc28a3198b0bf4d3ded06d7 /src/ruby/spec/pb | |
parent | 83939ce3ac1d22abf3e2878d22df009ccfde5d0b (diff) |
Finished updating code and tests with keyword argument changes
Diffstat (limited to 'src/ruby/spec/pb')
-rw-r--r-- | src/ruby/spec/pb/health/checker_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ruby/spec/pb/health/checker_spec.rb b/src/ruby/spec/pb/health/checker_spec.rb index 5523347f45..f3d121a31e 100644 --- a/src/ruby/spec/pb/health/checker_spec.rb +++ b/src/ruby/spec/pb/health/checker_spec.rb @@ -170,17 +170,15 @@ describe Grpc::Health::Checker do before(:each) do @server_queue = GRPC::Core::CompletionQueue.new server_host = '0.0.0.0:0' - @server = GRPC::Core::Server.new(@server_queue, nil) - server_port = @server.add_http2_port(server_host, :this_port_is_insecure) - @host = "localhost:#{server_port}" - @ch = GRPC::Core::Channel.new(@host, nil, :this_channel_is_insecure) @client_opts = { channel_override: @ch } server_opts = { - server_override: @server, completion_queue_override: @server_queue, poll_period: 1 } @srv = RpcServer.new(**server_opts) + server_port = @srv.add_http2_port(server_host, :this_port_is_insecure) + @host = "localhost:#{server_port}" + @ch = GRPC::Core::Channel.new(@host, nil, :this_channel_is_insecure) end after(:each) do |