Skip to content

Commit 1bd10a1

Browse files
committed
fix a typo on the timer_task_spec
sount_down -> count_down. As the spec didn't check whether the execution raised or not this typo went unnoticed.
1 parent aedc0cd commit 1bd10a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/concurrent/timer_task_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,12 @@ def trigger_observable(observable)
205205
latch = CountDownLatch.new(1)
206206
subject = TimerTask.new(execution_interval: 1, run_now: true) do |task|
207207
expected = task
208-
latch.sount_down
208+
latch.count_down
209209
end
210210
subject.execute
211211
latch.wait(1)
212212
expect(expected).to eq subject
213+
expect(latch.count).to eq(0)
213214
subject.kill
214215
end
215216
end

0 commit comments

Comments
 (0)