Fix tests path
This commit is contained in:
parent
1855c50d9b
commit
e554dbb1c5
2 changed files with 7 additions and 12 deletions
|
|
@ -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}"}
|
||||
|
|
|
|||
|
|
@ -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))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue