chui icon indicating copy to clipboard operation
chui copied to clipboard

"Running" and "Pass" are shown forever for async test with errors

Open Valdermeyder opened this issue 4 years ago • 0 comments

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))))))
Screenshot 2021-06-21 at 13 54 30

Valdermeyder avatar Jun 21 '21 12:06 Valdermeyder