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-ancient "0.6.15"]
|
||||||
[lein-codox "0.10.7"]]}]}
|
[lein-codox "0.10.7"]]}]}
|
||||||
|
|
||||||
:test-paths ["test" "src"]
|
|
||||||
|
|
||||||
:codox
|
:codox
|
||||||
{:language :clojure
|
{:language :clojure
|
||||||
:source-uri "https://github.com/ptaoussanis/nippy/blob/master/{filepath}#L{line}"}
|
:source-uri "https://github.com/ptaoussanis/nippy/blob/master/{filepath}#L{line}"}
|
||||||
|
|
|
||||||
|
|
@ -205,16 +205,13 @@
|
||||||
|
|
||||||
;;;; Thread safety
|
;;;; 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
|
(deftest _thread-safe
|
||||||
(is
|
(is
|
||||||
(let [futures
|
(let [futures
|
||||||
(mapv
|
(mapv
|
||||||
(fn [_]
|
(fn [_]
|
||||||
(future
|
(future
|
||||||
(= (thaw (freeze test-data-threaded)) test-data-threaded)))
|
(= (thaw (freeze test-data)) test-data)))
|
||||||
(range 50))]
|
(range 50))]
|
||||||
(every? deref futures)))
|
(every? deref futures)))
|
||||||
|
|
||||||
|
|
@ -223,9 +220,9 @@
|
||||||
(mapv
|
(mapv
|
||||||
(fn [_]
|
(fn [_]
|
||||||
(future
|
(future
|
||||||
(= (thaw (freeze test-data-threaded {:password [:salted "password"]})
|
(= (thaw (freeze test-data {:password [:salted "password"]})
|
||||||
{:password [:salted "password"]})
|
{:password [:salted "password"]})
|
||||||
test-data-threaded)))
|
test-data)))
|
||||||
(range 50))]
|
(range 50))]
|
||||||
(every? deref futures)))
|
(every? deref futures)))
|
||||||
|
|
||||||
|
|
@ -234,9 +231,9 @@
|
||||||
(mapv
|
(mapv
|
||||||
(fn [_]
|
(fn [_]
|
||||||
(future
|
(future
|
||||||
(= (thaw (freeze test-data-threaded {:password [:cached "password"]})
|
(= (thaw (freeze test-data {:password [:cached "password"]})
|
||||||
{:password [:cached "password"]})
|
{:password [:cached "password"]})
|
||||||
test-data-threaded)))
|
test-data)))
|
||||||
(range 50))]
|
(range 50))]
|
||||||
(every? deref futures))))
|
(every? deref futures))))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue