From e554dbb1c5e66b8f4247087e510bea7fc3cbbc70 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Fri, 24 Jul 2020 17:08:38 +0200 Subject: [PATCH] Fix tests path --- project.clj | 2 -- test/taoensso/nippy/tests/main.clj | 17 +++++++---------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/project.clj b/project.clj index 529e1cd..110dc77 100644 --- a/project.clj +++ b/project.clj @@ -39,8 +39,6 @@ [lein-ancient "0.6.15"] [lein-codox "0.10.7"]]}]} - :test-paths ["test" "src"] - :codox {:language :clojure :source-uri "https://github.com/ptaoussanis/nippy/blob/master/{filepath}#L{line}"} diff --git a/test/taoensso/nippy/tests/main.clj b/test/taoensso/nippy/tests/main.clj index c05de43..44e4360 100644 --- a/test/taoensso/nippy/tests/main.clj +++ b/test/taoensso/nippy/tests/main.clj @@ -205,16 +205,13 @@ ;;;; Thread safety -;; Not sure why, but record equality test fails in futures: -(def test-data-threaded (dissoc nippy/stress-data-comparable :stress-record)) - (deftest _thread-safe (is (let [futures (mapv (fn [_] (future - (= (thaw (freeze test-data-threaded)) test-data-threaded))) + (= (thaw (freeze test-data)) test-data))) (range 50))] (every? deref futures))) @@ -223,9 +220,9 @@ (mapv (fn [_] (future - (= (thaw (freeze test-data-threaded {:password [:salted "password"]}) - {:password [:salted "password"]}) - test-data-threaded))) + (= (thaw (freeze test-data {:password [:salted "password"]}) + {:password [:salted "password"]}) + test-data))) (range 50))] (every? deref futures))) @@ -234,9 +231,9 @@ (mapv (fn [_] (future - (= (thaw (freeze test-data-threaded {:password [:cached "password"]}) - {:password [:cached "password"]}) - test-data-threaded))) + (= (thaw (freeze test-data {:password [:cached "password"]}) + {:password [:cached "password"]}) + test-data))) (range 50))] (every? deref futures))))