Skip to content

Commit c252dbd

Browse files
wip
1 parent 661a46d commit c252dbd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spec/mongo/server/pending_connection_spec.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44

55
describe Mongo::Server::PendingConnection do
66
let(:socket) { StringIO.new }
7+
let(:server) do
8+
double(Mongo::Server).tap do |server|
9+
allow(server).to receive(:options).and_return({})
10+
allow(server).to receive(:app_metadata).and_return(Mongo::Server::AppMetadata.new)
11+
allow(server).to receive(:load_balancer?).and_return(false)
12+
end
13+
end
714

815
let(:pending_connection) do
9-
described_class.new(socket, nil, nil)
16+
described_class.new(socket, server, nil)
1017
end
1118

1219
context 'when saslSupportedMechs attribute contains an unknown mechanism' do

0 commit comments

Comments
 (0)