Skip to content

Commit

Permalink
add fix and note about breaking testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
martinklepsch committed Dec 5, 2016
1 parent 0b7f31c commit 0c5e639
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/org/martinklepsch/derivatives_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@
(t/is (= 3 @(get! :sum :3-token)))
(t/is (= [:inc :as-map :sum] @compute-log))
(swap! base inc)
(t/is (= [:inc :as-map :sum :inc :as-map :sum :as-map] @compute-log))
;; This is a bit of a weird situation. We can't really make any guarantees
;; which watch is triggered first and so it might either be the one or the other
;; order of computations.
(t/is (or (= [:inc :as-map :sum :inc :as-map :sum :as-map] @compute-log)
(= [:inc :as-map :sum :as-map :sum :inc :as-map :sum] @compute-log)))
(t/is (= 5 @(get! :sum :3-token)))))

(t/deftest pool-throws-if-unknown-test
Expand Down

0 comments on commit 0c5e639

Please sign in to comment.