diff options
author | murgatroid99 <mlumish@google.com> | 2015-12-16 13:04:37 -0800 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-12-16 13:04:37 -0800 |
commit | afe3974bce8e46b9d137b5578e2addf2c459726f (patch) | |
tree | 7c8d51465c5899e366383284bcf99f9794a12de7 /src/ruby/spec/pb/health | |
parent | da61668122b63fc18d64231dede700139234bc75 (diff) |
Made insecure channel/stub explicit, in all layers
Diffstat (limited to 'src/ruby/spec/pb/health')
-rw-r--r-- | src/ruby/spec/pb/health/checker_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ruby/spec/pb/health/checker_spec.rb b/src/ruby/spec/pb/health/checker_spec.rb index 322566b784..794c5922fa 100644 --- a/src/ruby/spec/pb/health/checker_spec.rb +++ b/src/ruby/spec/pb/health/checker_spec.rb @@ -188,7 +188,7 @@ describe Grpc::Health::Checker do @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) + @ch = GRPC::Core::Channel.new(@host, nil, :this_channel_is_insecure) @client_opts = { channel_override: @ch } server_opts = { server_override: @server, @@ -208,7 +208,7 @@ describe Grpc::Health::Checker do t = Thread.new { @srv.run } @srv.wait_till_running - stub = CheckerStub.new(@host, **@client_opts) + stub = CheckerStub.new(@host, :this_channel_is_insecure, **@client_opts) got = stub.check(HCReq.new) want = HCResp.new(status: ServingStatus::NOT_SERVING) expect(got).to eq(want) @@ -221,7 +221,7 @@ describe Grpc::Health::Checker do t = Thread.new { @srv.run } @srv.wait_till_running blk = proc do - stub = CheckerStub.new(@host, **@client_opts) + stub = CheckerStub.new(@host, :this_channel_is_insecure, **@client_opts) stub.check(HCReq.new(host: 'unknown', service: 'unknown')) end expected_msg = /#{StatusCodes::NOT_FOUND}/ |