File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -171,23 +171,23 @@ def trigger_observable(observable)
171171 it 'runs the block immediately when the :run_now option is true' do
172172 latch = CountDownLatch . new ( 1 )
173173 subject = TimerTask . execute ( execution : 500 , now : true ) { latch . count_down }
174- latch . wait ( 0. 1) . should be_true
174+ latch . wait ( 1 ) . should be_true
175175 subject . kill
176176 end
177177
178178 it 'waits for :execution_interval seconds when the :run_now option is false' do
179179 latch = CountDownLatch . new ( 1 )
180180 subject = TimerTask . execute ( execution : 0.1 , now : false ) { latch . count_down }
181181 latch . count . should eq 1
182- latch . wait ( 0.2 ) . should be_true
182+ latch . wait ( 1 ) . should be_true
183183 subject . kill
184184 end
185185
186186 it 'waits for :execution_interval seconds when the :run_now option is not given' do
187187 latch = CountDownLatch . new ( 1 )
188188 subject = TimerTask . execute ( execution : 0.1 , now : false ) { latch . count_down }
189189 latch . count . should eq 1
190- latch . wait ( 0.2 ) . should be_true
190+ latch . wait ( 1 ) . should be_true
191191 subject . kill
192192 end
193193
@@ -199,7 +199,7 @@ def trigger_observable(observable)
199199 latch . sount_down
200200 end
201201 subject . execute
202- latch . wait ( 0.2 )
202+ latch . wait ( 1 )
203203 expected . should eq subject
204204 subject . kill
205205 end
You can’t perform that action at this time.
0 commit comments