diff --git a/test/hyperfiddle/electric_de_test.cljc b/test/hyperfiddle/electric_de_test.cljc index 12b67399b..c584d0478 100644 --- a/test/hyperfiddle/electric_de_test.cljc +++ b/test/hyperfiddle/electric_de_test.cljc @@ -2265,11 +2265,11 @@ ) (tests "conditional work-skipping" - (def !test (atom nil)) - (with ((l/local {} - (when-not (e/watch !test) - (tap :mount))) - tap tap) - % := :mount - (reset! !test false) - % := ::rcf/timeout)) \ No newline at end of file + (let [!x (atom 0)] + (with ((l/local {} + (when (e/watch !x) + (tap :mount))) + tap tap) + % := :mount + (swap! !x inc) + % := ::rcf/timeout))) \ No newline at end of file