From d92807493f09f7d24d2031c015e9bc8abecb83e0 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 26 Apr 2025 10:35:28 +0200 Subject: [PATCH] wip --- test/babashka/interop_test.clj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/babashka/interop_test.clj b/test/babashka/interop_test.clj index 94d03aae..fa7cab3e 100644 --- a/test/babashka/interop_test.clj +++ b/test/babashka/interop_test.clj @@ -247,4 +247,8 @@ (is (= 3 (bb nil "(import '(java.util.concurrent Executors ExecutorService)) (let [fut (.submit ^ExecutorService (Executors/newCachedThreadPool) ^Callable (fn [] 3))] - (.get fut))")))) + (.get fut))"))) + (is (nil? (bb nil "(import '(java.util.concurrent Executors ExecutorService)) + (let [fut (.submit ^ExecutorService (Executors/newCachedThreadPool) + ^Runnable (fn [] 3))] + (.get fut))"))))