From 1ed92f81d760b1c645dab2cdf798783615c14cd0 Mon Sep 17 00:00:00 2001 From: Moritz Heidkamp Date: Fri, 19 Sep 2025 16:51:10 +0200 Subject: [PATCH] Fix dropped errors in `manifold.go-off` Timeout tests are changed so that every timeout exception has a uniquely identifiable message which makes it easier to match up the dropped error warning with the originating timeout. --- src/manifold/go_off.clj | 3 +-- test/manifold/go_off_test.clj | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/manifold/go_off.clj b/src/manifold/go_off.clj index 0163ec19..f5dfda11 100644 --- a/src/manifold/go_off.clj +++ b/src/manifold/go_off.clj @@ -46,8 +46,7 @@ (defn ^:no-doc run-state-machine-wrapped [state] (try (async-runtime/run-state-machine state) (catch Throwable ex - (d/error! (async-runtime/aget-object state async-runtime/USER-START-IDX) ex) - (throw ex)))) + (d/error! (async-runtime/aget-object state async-runtime/USER-START-IDX) ex)))) (defn ^:no-doc take! [state blk d] (let [handler (fn [x] diff --git a/test/manifold/go_off_test.clj b/test/manifold/go_off_test.clj index cafc8ed0..6031519b 100644 --- a/test/manifold/go_off_test.clj +++ b/test/manifold/go_off_test.clj @@ -115,12 +115,12 @@ (testing "timeouts" (is (= ::timeout @(go-off (