Skip to content

Commit 14bb416

Browse files
p-mongop
andauthored
RUBY-2445 increase timeouts to fight flakiness (#2341)
Co-authored-by: Oleg Pudeyev <code@olegp.name>
1 parent a8bccfe commit 14bb416

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/mongo/server/monitor_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,17 @@
186186
context 'when running after a stop' do
187187
it 'starts the thread' do
188188
ClientRegistry.instance.close_all_clients
189+
sleep 1
189190
thread
190-
sleep 0.5
191+
sleep 1
191192

192193
RSpec::Mocks.with_temporary_scope do
193194
expect(monitor.connection).to receive(:disconnect!).and_call_original
194195
monitor.stop!
195-
sleep 0.5
196+
sleep 1
196197
expect(thread.alive?).to be false
197198
new_thread = monitor.run!
198-
sleep 0.5
199+
sleep 1
199200
expect(new_thread.alive?).to be(true)
200201
end
201202
end

0 commit comments

Comments
 (0)