We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58139e1 commit 6aaf086Copy full SHA for 6aaf086
test/lsp4clj/server_test.clj
@@ -488,14 +488,10 @@
488
(testing "current thread"
489
(is (not (core-async-dispatch-thread? (Thread/currentThread)))))
490
(testing "thread running go blocks"
491
- (let [ch (async/chan)
492
- _ (async/go (async/>! ch (Thread/currentThread)))
493
- thread (async/<!! ch)]
+ (let [thread (async/<!! (async/go (Thread/currentThread)))]
494
(is (core-async-dispatch-thread? thread))))
495
(testing "thread running core.async thread macro"
496
497
- _ (async/thread (async/>!! ch (Thread/currentThread)))
498
+ (let [thread (async/<!! (async/thread (Thread/currentThread)))]
499
(is (not (core-async-dispatch-thread? thread))))))
500
501
(deftest request-should-complete-on-a-suitable-executor
0 commit comments