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 488
488
(testing " current thread"
489
489
(is (not (core-async-dispatch-thread? (Thread/currentThread )))))
490
490
(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 )))]
494
492
(is (core-async-dispatch-thread? thread))))
495
493
(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 )))]
499
495
(is (not (core-async-dispatch-thread? thread))))))
500
496
501
497
(deftest request-should-complete-on-a-suitable-executor
You can’t perform that action at this time.
0 commit comments