Skip to content

Commit 18a9b14

Browse files
committed
fix: test
1 parent d23b959 commit 18a9b14

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

deps.edn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
com.cognitect/transit-clj {:mvn/version "1.0.324"}
3131
com.cognitect/transit-cljs {:mvn/version "0.8.269"}}}
3232

33+
:shadow-cljs
34+
{:extra-deps {thheller/shadow-cljs {:mvn/version "2.19.0"}}
35+
:main-opts ["-m" "shadow.cljs.devtools.cli"]}
36+
3337
:bench
3438
{:extra-paths ["bench"]
3539
:jvm-opts ["-server"

test/datascript/test/storage.cljs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,17 +280,15 @@
280280

281281
;; overflow keeps working on restored conn
282282
(d/transact! conn' (mapv #(vector :db/add % :name (str %)) (range 36 80)))
283-
;; (is (= 28 (count @(:*writes storage))))
284-
;; FIXME: clj version is 28
285-
(is (= 29 (count @(:*writes storage))))
283+
(is (= 28 (count @(:*writes storage))))
286284
(is (= @#'storage/tail-addr (last @(:*writes storage))))
287285

288286
;; restore conn without tail
289287
(let [conn'' (d/restore-conn storage)]
290288
(is (= @conn' @conn''))
291289

292290
(d/transact! conn'' [[:db/add 80 :name "Ilya"]])
293-
(is (= 30 (count @(:*writes storage))))
291+
(is (= 29 (count @(:*writes storage))))
294292
(is (= @#'storage/tail-addr (last @(:*writes storage))))
295293

296294
;; gc on conn

0 commit comments

Comments
 (0)