         (run-tests-with-format test-name-pattern)))
     (run-tests-with-format test-name-pattern)))
 
-(defn ensure-dynamic-classloader
-  []
-  (let [thread (Thread/currentThread)
-        cl (.getContextClassLoader thread)]
-    (when-not (instance? DynamicClassLoader cl)
-      (.bindRoot clojure.lang.Compiler/LOADER cl)
-      (.setContextClassLoader thread (DynamicClassLoader. cl)))))
-
 (defn run-app!
   "Start Riemann with the given setup function. The setup function is responsible
   for executing code that you would normally put into your riemann.config file,

        (error e "Couldn't reload:")
        e))))

(defn handle-signals
  "Sets up POSIX signal handlers."
  []

  (assert (deliver config-file file)
          (str "Config file already set to " (pr-str @config-file)
               "--can't change it to " (pr-str file)))
  (add-config-dir-to-classpath file))

(def reload-lock (Object.))

