From d67c21f64686fcaa99f6a393bd2b56d2900c292f Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 7 Dec 2019 22:17:26 +0100 Subject: [PATCH] socket repl tests --- test/babashka/impl/socket_repl_test.clj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/babashka/impl/socket_repl_test.clj b/test/babashka/impl/socket_repl_test.clj index 2edae210..b43eb5c8 100644 --- a/test/babashka/impl/socket_repl_test.clj +++ b/test/babashka/impl/socket_repl_test.clj @@ -23,7 +23,11 @@ (println l)) (when-not (str/includes? l expected) (recur)))) - (str sw))) + (let [s (str sw)] + (is (str/includes? s expected) + (format "\"%s\" does not contain \"%s\"" + s expected)) + s))) (deftest socket-repl-test (try @@ -65,6 +69,7 @@ (comment (socket-repl-test) + (t/run-tests) (stop-repl!) (start-repl! "0.0.0.0:1666" {:bindings {(with-meta '*in* {:sci/deref! true})