I\'m trying to write unit tests when using core.async go macros. Writing the test naively, as follows, appears that the code inside the go blocks doesn\'t get executed.
I'm using an approach similar to Leon's, but with no extra go blocks:
(defn
You can use it simply as:
(is (= 42 (
Most of the time I just want to read the value from the channel without any extra hassle.