From 99f1e948d34573f653f3bc727d361a0e2df01e23 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 19 Nov 2022 11:50:14 +0100 Subject: [PATCH] Fix pREPL tests --- test/babashka/impl/socket_repl_test.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/babashka/impl/socket_repl_test.clj b/test/babashka/impl/socket_repl_test.clj index f43afeb6..5699b456 100644 --- a/test/babashka/impl/socket_repl_test.clj +++ b/test/babashka/impl/socket_repl_test.clj @@ -106,7 +106,7 @@ :env (atom {}) :namespaces {'clojure.core.server clojure-core-server-namespace} :features #{:bb}})] - (vreset! common/ctx (fn [] ctx)) + (ctx-store/reset-ctx! ctx) (start-repl! "{:address \"localhost\" :accept clojure.core.server/io-prepl :port 1666}" ctx)) (do (vreset! server-process @@ -121,7 +121,7 @@ (finally (if tu/jvm? (do (stop-repl!) - (vreset! common/ctx nil) + (ctx-store/reset-ctx! nil) (Thread/sleep 100)) (p/destroy-tree @server-process))))))