Skip to content
Snippets Groups Projects
Commit f3cfb70a authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

update channel_credentials_spec

parent 0a023718
No related branches found
No related tags found
No related merge requests found
...@@ -54,10 +54,15 @@ describe GRPC::Core::ChannelCredentials do ...@@ -54,10 +54,15 @@ describe GRPC::Core::ChannelCredentials do
expect { ChannelCredentials.new(root_cert) }.not_to raise_error expect { ChannelCredentials.new(root_cert) }.not_to raise_error
end end
it 'cannot be constructed with a nil server roots' do it 'can be constructed with a nil server roots' do
_, client_key, client_chain = load_test_certs _, client_key, client_chain = load_test_certs
blk = proc { ChannelCredentials.new(nil, client_key, client_chain) } blk = proc { ChannelCredentials.new(nil, client_key, client_chain) }
expect(&blk).to raise_error expect(&blk).not_to raise_error
end
it 'can be constructed with no params' do
blk = proc { ChannelCredentials.new(nil) }
expect(&blk).not_to raise_error
end end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment