File tree 1 file changed +7
-4
lines changed
test/clojure/test_clojure
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 49
49
(is (= agt (first @err)))
50
50
(is (true ? (instance? ArithmeticException (second @err))))))
51
51
52
- (deftest fail-handler
52
+
53
+ ; ; TODO: make these tests deterministic (i.e. not sleep and hope)
54
+
55
+ #_(deftest fail-handler
53
56
(let [err (atom nil )
54
57
agt (agent 0 :error-mode :fail :error-handler #(reset! err %&))]
55
58
(send agt /)
79
82
(send failing-agent (fn [_] (throw (RuntimeException. ))))
80
83
(is (.await latch 10 TimeUnit/SECONDS))))
81
84
82
- (deftest restart-no-clear
85
+ #_ (deftest restart-no-clear
83
86
(let [p (promise )
84
87
agt (agent 1 :error-mode :fail )]
85
88
(send agt (fn [v] @p))
95
98
(is (= 12 @agt))
96
99
(is (nil? (agent-error agt)))))
97
100
98
- (deftest restart-clear
101
+ #_ (deftest restart-clear
99
102
(let [p (promise )
100
103
agt (agent 1 :error-mode :fail )]
101
104
(send agt (fn [v] @p))
115
118
(is (= 11 @agt))
116
119
(is (nil? (agent-error agt)))))
117
120
118
- (deftest invalid-restart
121
+ #_ (deftest invalid-restart
119
122
(let [p (promise )
120
123
agt (agent 2 :error-mode :fail :validator even?)]
121
124
(is (thrown? RuntimeException (restart-agent agt 4 )))
You can’t perform that action at this time.
0 commit comments