Skip to content

Commit

Permalink
clean up hidden calls to SessionPool.create
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Oct 20, 2023
1 parent d9b2f46 commit 7236fb8
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions spec/mongo/session/session_pool_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,6 @@
end
end

describe '.create' do

let!(:pool) do
described_class.create(cluster)
end

it 'creates a session pool' do
expect(pool).to be_a(Mongo::Session::SessionPool)
end

it 'adds the pool as an instance variable on the cluster' do
expect(cluster.session_pool).to eq(pool)
end
end

describe '#initialize' do

let(:pool) do
Expand Down Expand Up @@ -181,7 +166,7 @@
describe '#end_sessions' do

let(:pool) do
described_class.create(client.cluster)
described_class.new(client.cluster)
end

let!(:session_a) do
Expand Down

0 comments on commit 7236fb8

Please sign in to comment.