Skip to content

Commit

Permalink
46: fix metabase.cmd.load-from-h2-test/load-from-h2-test
Browse files Browse the repository at this point in the history
  • Loading branch information
camsaul committed Jul 28, 2023
1 parent 8acf5a8 commit a1aa1a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/metabase/cmd/load_from_h2_test.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns metabase.cmd.load-from-h2-test
(:require [clojure.test :refer :all]
[metabase.cmd.copy :as copy]
[metabase.cmd.load-from-h2 :as load-from-h2]
[metabase.cmd.test-util :as cmd.test-util]
[metabase.db.connection :as mdb.connection]
Expand All @@ -22,7 +23,8 @@
target-db-type
(tx/dbdef->connection-details target-db-type :db db-def)))]
(tx/create-db! target-db-type db-def)
(binding [mdb.connection/*application-db* (mdb.connection/application-db target-db-type target-data-source)]
(binding [mdb.connection/*application-db* (mdb.connection/application-db target-db-type target-data-source)
copy/*allow-loading-h2-databases* true]
(load-from-h2/load-from-h2! h2-filename)
(is (= 4
(db/count Table)))
Expand Down

0 comments on commit a1aa1a0

Please sign in to comment.