Skip to content

Commit

Permalink
add test for stop
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed May 30, 2017
1 parent 0327331 commit e0c620d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/runtests.jl
Expand Up @@ -3,10 +3,14 @@ using FactCheck

# Stop the runner task

if !istaskdone(Reactive.runner_task)

facts("Queue runner") do
@fact istaskdone(Reactive.runner_task) --> false
Reactive.stop()
@fact istaskdone(Reactive.runner_task) --> true
end


step() = Reactive.run(1)
queue_size() = Base.n_avail(Reactive._messages)
number() = round(Int, rand()*1000)
Expand Down

0 comments on commit e0c620d

Please sign in to comment.