Skip to content

Commit

Permalink
no need to test the now-non-existant SessionPool.create method
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Jan 12, 2024
1 parent 88e84c0 commit 57537e5
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)
client.cluster.session_pool
end

let!(:session_a) do
Expand Down

0 comments on commit 57537e5

Please sign in to comment.