Skip to content

Commit

Permalink
Add workaround for race condition in test (fixes #13)
Browse files Browse the repository at this point in the history
Workaround do fix a race condition: give r/join a little time to start doing its job.
  • Loading branch information
fredZen committed Mar 4, 2016
1 parent 8e43708 commit 097893f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/clojure/reagi/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@
(is (r/complete? j))))
(testing "once"
(let [j (r/join (r/once 1) (r/once 2) (r/once 3))]
(Thread/sleep 200)
(is (realized? j))
(is (r/complete? j))
(is (= (deref! j) 3)))))
Expand Down

0 comments on commit 097893f

Please sign in to comment.