Skip to content

Commit

Permalink
make ruby unit tests work on ruby 3 (grpc#30603)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolcyn authored Aug 17, 2022
1 parent 1b8f7b1 commit b2be531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ruby/spec/generic/server_interceptors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
let(:interceptor) { TestServerInterceptor.new }
let(:request) { EchoMsg.new }
let(:trailing_metadata) { {} }
let(:service) { EchoService.new(trailing_metadata) }
let(:service) { EchoService.new(**trailing_metadata) }
let(:interceptors) { [] }

before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/user_agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def an_rpc(_req, call)
it 'client sends expected user agent' do
stub = UserAgentEchoServiceStub.new("localhost:#{@port}",
:this_channel_is_insecure,
{})
channel_args: {})
response = stub.an_rpc(EchoMsg.new)
expected_user_agent_prefix = "grpc-ruby/#{GRPC::VERSION}"
expect(response.msg.start_with?(expected_user_agent_prefix)).to be true
Expand Down

0 comments on commit b2be531

Please sign in to comment.