File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ def schedule_next_task(interval = execution_interval)
308
308
# @!visibility private
309
309
def execute_task ( completion )
310
310
return nil unless @running . true?
311
- ScheduledTask . execute ( execution_interval , args : [ completion ] , &method ( :timeout_task ) )
311
+ ScheduledTask . execute ( timeout_interval , args : [ completion ] , &method ( :timeout_task ) )
312
312
_success , value , reason = @executor . execute ( self )
313
313
if completion . try?
314
314
self . value = value
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ def trigger_observable(observable)
243
243
end
244
244
245
245
it 'notifies all observers on timeout' do
246
- subject = TimerTask . new ( execution : 0.1 , timeout : 0.1 ) { sleep }
246
+ subject = TimerTask . new ( run_now : true , execution : 2 , timeout : 0.1 ) { sleep }
247
247
subject . add_observer ( observer )
248
248
subject . execute
249
249
observer . latch . wait ( 1 )
You can’t perform that action at this time.
0 commit comments