mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 14:39:48 +00:00
fix: crypt tests to handle new caching
Also mark more ^:long tests so most unit tests can still be run locally in ~30s
This commit is contained in:
@@ -150,13 +150,15 @@
|
||||
(sync-crypt/<ensure-graph-aes-key "repo-1" graph-id))
|
||||
(p/then (fn [aes-key]
|
||||
(is (= "aes:remote-encrypted" aes-key))
|
||||
(is (= [{:platform platform-map
|
||||
:key expected-key}]
|
||||
@kv-get-calls))
|
||||
(is (= [{:platform platform-map
|
||||
:key expected-key
|
||||
:value "remote-encrypted"}]
|
||||
@kv-set-calls))
|
||||
(is (some #(= {:platform platform-map
|
||||
:key expected-key}
|
||||
%)
|
||||
@kv-get-calls))
|
||||
(is (some #(= {:platform platform-map
|
||||
:key expected-key
|
||||
:value "remote-encrypted"}
|
||||
%)
|
||||
@kv-set-calls))
|
||||
(is (pos? @current-calls))))
|
||||
(p/catch (fn [e]
|
||||
(is false (str e))))
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
:timeout-ms 5000
|
||||
:body payload})))
|
||||
|
||||
(deftest bundle-only-daemon-startup-smoke-test
|
||||
(deftest ^:long bundle-only-daemon-startup-smoke-test
|
||||
(async done
|
||||
(let [child* (atom nil)]
|
||||
(-> (p/let [_ (ensure-bundle-built!)
|
||||
@@ -156,7 +156,7 @@
|
||||
(is false (str "unexpected error: " e))
|
||||
(done)))))))
|
||||
|
||||
(deftest bundle-daemon-starts-with-empty-asset-manifest
|
||||
(deftest ^:long bundle-daemon-starts-with-empty-asset-manifest
|
||||
(async done
|
||||
(let [child* (atom nil)
|
||||
original-manifest* (atom nil)]
|
||||
@@ -216,7 +216,7 @@
|
||||
(write-asset-manifest! manifest))
|
||||
(done)))))))
|
||||
|
||||
(deftest bundle-errors-are-actionable-when-manifest-or-entry-is-missing
|
||||
(deftest ^:long bundle-errors-are-actionable-when-manifest-or-entry-is-missing
|
||||
(let [_ (ensure-bundle-built!)
|
||||
manifest-path (dist-path "db-worker-node-assets.json")
|
||||
manifest-backup-path (dist-path "db-worker-node-assets.json.bak")
|
||||
|
||||
Reference in New Issue
Block a user