We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8bccfe commit 14bb416Copy full SHA for 14bb416
spec/mongo/server/monitor_spec.rb
@@ -186,16 +186,17 @@
186
context 'when running after a stop' do
187
it 'starts the thread' do
188
ClientRegistry.instance.close_all_clients
189
+ sleep 1
190
thread
- sleep 0.5
191
192
193
RSpec::Mocks.with_temporary_scope do
194
expect(monitor.connection).to receive(:disconnect!).and_call_original
195
monitor.stop!
196
197
expect(thread.alive?).to be false
198
new_thread = monitor.run!
199
200
expect(new_thread.alive?).to be(true)
201
end
202
0 commit comments