Skip to content

Commit 661a46d

Browse files
DRIVERS-2769 Clarify not validating saslSupportedMechs
1 parent 94eb2f5 commit 661a46d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe Mongo::Server::PendingConnection do
6+
let(:socket) { StringIO.new }
7+
8+
let(:pending_connection) do
9+
described_class.new(socket, nil, nil)
10+
end
11+
12+
context 'when saslSupportedMechs attribute contains an unknown mechanism' do
13+
it 'does not raise an error' do
14+
expect do
15+
pending_connection.handshake_and_authenticate!
16+
end.not_to raise_error
17+
end
18+
end
19+
end

0 commit comments

Comments
 (0)