mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 22:10:34 +00:00
♻️ Keep the ingest allocator test the parity suite carried
develop added ingest-on-connection-requires-allocator to graph_sync_parity_test.clj, beside the round trip it shares no fixture with. This branch retires that file with app.graph.sync, while app.graph.ingest stays as the batch-export tier, so the test moves to a namespace of its own rather than leaving with the suite. AI-assisted-by: claude-opus-5-5
This commit is contained in:
parent
e91b70775d
commit
314d82b60f
22
backend/test/backend_tests/graph_ingest_test.clj
Normal file
22
backend/test/backend_tests/graph_ingest_test.clj
Normal file
@ -0,0 +1,22 @@
|
||||
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; Copyright (c) KALEIDOS SUBSIDIARY SL
|
||||
|
||||
(ns backend-tests.graph-ingest-test
|
||||
"The batch-export tier, `app.graph.ingest`, which survives the retirement of
|
||||
the Ladybug session sync."
|
||||
(:require
|
||||
[app.common.uuid :as uuid]
|
||||
[app.graph.ingest :as ingest]
|
||||
[clojure.test :as t]))
|
||||
|
||||
(t/deftest ingest-on-connection-requires-allocator
|
||||
;; The allocator must outlive the connection, so ingest cannot make its own
|
||||
;; inside the call — see `app.graph.arrow/with-allocator!`.
|
||||
(try
|
||||
(ingest/ingest-on-connection! nil nil (uuid/next))
|
||||
(t/is false "expected :missing-arrow-allocator")
|
||||
(catch clojure.lang.ExceptionInfo e
|
||||
(t/is (= :missing-arrow-allocator (:code (ex-data e)))))))
|
||||
Loading…
x
Reference in New Issue
Block a user