Sha256: 1c9573366a9e27dc3ecd6b7be2cc5ef4ab92a6cb27e63caf9f9ba37264137a2f
Contents?: true
Size: 593 Bytes
Versions: 21
Compression:
Stored size: 593 Bytes
Contents
require 'spec_helper' describe Mongo::Cluster::SocketReaper do let(:cluster) do authorized_client.cluster end let(:reaper) do described_class.new(cluster) end describe '#initialize' do it 'takes a cluster as an argument' do expect(reaper).to be_a(described_class) end end describe '#execute' do before do cluster.servers.each do |s| expect(s.pool).to receive(:close_idle_sockets).and_call_original end end it 'calls close_idle_sockets on each connection pool in the cluster' do reaper.execute end end end
Version data entries
21 entries across 21 versions & 1 rubygems