From 36ab5ab2992ee417b31bea1b59337a8e520fb19b Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Wed, 14 Jul 2021 14:25:32 +0200 Subject: [PATCH] [#935] Fix logging test for windows --- test/babashka/logging_test.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/babashka/logging_test.clj b/test/babashka/logging_test.clj index 219f8a30..a67063e2 100644 --- a/test/babashka/logging_test.clj +++ b/test/babashka/logging_test.clj @@ -60,10 +60,10 @@ program (pr-str '(do (require '[taoensso.timbre :as timbre] '[clojure.string :as str]) - (def appender (timbre/spit-appender {:fname "{{fname}}"})) + (def appender (timbre/spit-appender {:fname :fname-placeholder})) (timbre/swap-config! assoc-in [:appenders :spit] appender) (str/includes? (with-out-str (timbre/info "hello")) "hello"))) - program (str/replace program "{{fname}}" (str temp-file)) + program (str/replace program ":fname-placeholder" (pr-str (.getPath temp-file))) _ (tu/bb nil program)