From ac0a957ea5f8a56cc66e95135916983bf56f7155 Mon Sep 17 00:00:00 2001 From: Frank Wang Date: Wed, 23 Mar 2016 20:35:35 -0400 Subject: [PATCH] Set up db connection before testing db --- test/kata/test/db/core.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/kata/test/db/core.clj b/test/kata/test/db/core.clj index 99669cd..78f252d 100644 --- a/test/kata/test/db/core.clj +++ b/test/kata/test/db/core.clj @@ -9,10 +9,11 @@ :once (fn [f] (migrations/migrate ["migrate"]) + (db/connect!) (f))) (deftest test-users - (jdbc/with-db-transaction [t-conn db/conn] + (jdbc/with-db-transaction [t-conn @db/conn] (jdbc/db-set-rollback-only! t-conn) (is (= 1 (db/create-user! {:id "1"