🐛 Fix export artifact expectations to include file size

The export flow now reports the artifact size, but the stale
expectations dropped it and failed the frontend suite. Include the
size in both assertions so they match the emitted message.

AI-assisted-by: muse-spark-1.3-contributor
This commit is contained in:
Andrey Antukh 2026-10-17 15:41:57 +00:00
parent 7b47524735
commit 1eb5bacc82

View File

@ -125,7 +125,8 @@
(t/is (= {:file-id (:id target)
:uri "http://assets/export"
:filename "My file"}
:filename "My file"
:size 120}
(last @seen)))))))))
(t/deftest ^:async a-failure-fails-only-its-own-file
@ -165,7 +166,8 @@
(t/testing "the failure does not touch the file that worked"
(t/is (= {:file-id (:id one)
:uri "http://assets/first"
:filename "First"}
:filename "First"
:size nil}
(first (filter #(and (= (:id one) (:file-id %))
(:uri %))
@seen)))))