From 49c2661cf60145d703f4b55e8219af646f80f2f3 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Wed, 23 Sep 2020 10:52:10 +0200 Subject: [PATCH] Fix tests --- test/babashka/main_test.clj | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/babashka/main_test.clj b/test/babashka/main_test.clj index 11303f94..d35cd5ff 100644 --- a/test/babashka/main_test.clj +++ b/test/babashka/main_test.clj @@ -542,10 +542,11 @@ (is (str/includes? (test-utils/bb "(ns foo) ::foo" "--repl") ":foo/foo")) (is (str/includes? (test-utils/bb "[*warn-on-reflection* (set! *warn-on-reflection* true) *warn-on-reflection*]") "[false true true]")) - (let [sw (java.io.StringWriter.)] - (sci/with-bindings {sci/err sw} - (test-utils/bb {:in "x" :err sw} "--repl")) - (is (str/includes? (str sw) "Could not resolve symbol: x [at :1:1]")))) + (when-not test-utils/native? + (let [sw (java.io.StringWriter.)] + (sci/with-bindings {sci/err sw} + (test-utils/bb {:in "x" :err sw} "--repl")) + (is (str/includes? (str sw) "Could not resolve symbol: x [at :1:1]"))))) ;;;; Scratch