From cfd403301f1919b6865362ec4e3ec1e1451b894e Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sun, 7 Jun 2020 09:40:05 -0700 Subject: [PATCH] Improve readability of informational messages in tests --- test/next/jdbc/datafy_test.clj | 6 ++++-- test/next/jdbc/middleware_test.clj | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/next/jdbc/datafy_test.clj b/test/next/jdbc/datafy_test.clj index 0ed73f1..b007bab 100644 --- a/test/next/jdbc/datafy_test.clj +++ b/test/next/jdbc/datafy_test.clj @@ -40,7 +40,8 @@ :schema/exception))) data (set (keys (d/datafy con)))] (when-let [diff (seq (set/difference data reference-keys))] - (println (:dbtype (db)) :connection (sort diff))) + (println (format "%6s :%-10s %s" + (:dbtype (db)) "connection" (str (sort diff))))) (is (= reference-keys (set/intersection reference-keys data))))))) @@ -87,7 +88,8 @@ :rowIdLifetime/exception))) data (set (keys (d/datafy (.getMetaData con))))] (when-let [diff (seq (set/difference data reference-keys))] - (println (:dbtype (db)) :db-meta (sort diff))) + (println (format "%6s :%-10s %s" + (:dbtype (db)) "db-meta" (str (sort diff))))) (is (= reference-keys (set/intersection reference-keys data)))))) (testing "nav to catalogs yields object" diff --git a/test/next/jdbc/middleware_test.clj b/test/next/jdbc/middleware_test.clj index 5c39c41..cdc1319 100644 --- a/test/next/jdbc/middleware_test.clj +++ b/test/next/jdbc/middleware_test.clj @@ -72,4 +72,5 @@ :sql-params-fn start-fn :execute-fn exec-fn}) sql-p) - (println (:dbtype (db)) (:calls @timing) "calls took" (long (:total @timing)) "nanoseconds"))) + (println (format "%6s %d calls took %,10d nanoseconds" + (:dbtype (db)) (:calls @timing) (long (:total @timing))))))