Skip to content

Commit

Permalink
Try more sleep.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias committed Mar 31, 2015
1 parent eab2e9f commit 4dd4e51
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -224,8 +224,7 @@
IllegalArgumentException
(with-job* (fn []) {:until 5} (fn []))))))

;; pending so I can get a build past CI
#_(deftest completed-jobs-should-auto-unschedule
(deftest completed-jobs-should-auto-unschedule
(is (empty? (.scheduledJobs default)))
(let [p (promise)
id "auto-unschedule"]
Expand All @@ -237,7 +236,7 @@
(deliver p :success)))))
(.schedule default id #() {})
(is (= :success (deref p 1000 :failure)))
(Thread/sleep 100)
(Thread/sleep 1000)
(is (false? (.unschedule default id)))
(is (empty? (.scheduledJobs default)))
(-> (.scheduler default)
Expand Down

0 comments on commit 4dd4e51

Please sign in to comment.