chui
chui copied to clipboard
"Running" and "Pass" are shown forever for async test with errors
When cljs.core.async.interop/<p! is used inside the test results are shown immediately as "Pass" while the test is still in progress. And when an error occurs nothing is updated on UI: "Running" and "Pass" are shown forever
Code example
(deftest some-async-test
(testing "Some async test should fail"
(async done
(cljs.core.async/go
(cljs.core.async.interop/<p! (returns-promise)) ; error occurs here
(is (= false true)) ; never executed
(done))))))