Skip to content
Snippets Groups Projects
Unverified Commit b6819782 authored by Cam Saul's avatar Cam Saul
Browse files

Fix backend tests on Java 9

parent bc7d2053
No related branches found
No related tags found
No related merge requests found
(ns metabase.cmd.load-from-h2-test
(:require [clojure.java.classpath :as classpath]
[clojure.tools.namespace.find :as ns-find]
[expectations :refer :all]
(:require [expectations :refer :all]
metabase.cmd.load-from-h2
[metabase.util :as u]
[toucan.models :as models]))
;; Check to make sure we're migrating all of our entities.
......@@ -19,7 +18,7 @@
"QueryExecution"})
(defn- all-model-names []
(set (for [ns (ns-find/find-namespaces (classpath/classpath))
(set (for [ns @u/metabase-namespace-symbols
:when (or (re-find #"^metabase\.models\." (name ns))
(= (name ns) "metabase.db.migrations"))
:when (not (re-find #"test" (name ns)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment