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:
Gabriel Horner
2026-03-03 12:43:29 -05:00
committed by rcmerci
parent a1989f9c3d
commit edf0853e0a
2 changed files with 12 additions and 10 deletions

View File

@@ -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))))

View File

@@ -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")