File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 488488 (testing " current thread"
489489 (is (not (core-async-dispatch-thread? (Thread/currentThread )))))
490490 (testing " thread running go blocks"
491- (let [ch (async/chan )
492- _ (async/go (async/>! ch (Thread/currentThread )))
493- thread (async/<!! ch)]
491+ (let [thread (async/<!! (async/go (Thread/currentThread )))]
494492 (is (core-async-dispatch-thread? thread))))
495493 (testing " thread running core.async thread macro"
496- (let [ch (async/chan )
497- _ (async/thread (async/>!! ch (Thread/currentThread )))
498- thread (async/<!! ch)]
494+ (let [thread (async/<!! (async/thread (Thread/currentThread )))]
499495 (is (not (core-async-dispatch-thread? thread))))))
500496
501497(deftest request-should-complete-on-a-suitable-executor
You can’t perform that action at this time.
0 commit comments