From 0027f493471a434752333c6f8a1198c6d475fd69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Tejero=20Cantero?= Date: Fri, 14 Aug 2026 01:01:43 +0200 Subject: [PATCH] :paperclip: Assert the materialised payload as a main file_data row --- backend/test/backend_tests/rpc_file_branch_test.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/test/backend_tests/rpc_file_branch_test.clj b/backend/test/backend_tests/rpc_file_branch_test.clj index 32f6fd97c2..0a5cb801a6 100644 --- a/backend/test/backend_tests/rpc_file_branch_test.clj +++ b/backend/test/backend_tests/rpc_file_branch_test.clj @@ -971,8 +971,9 @@ (t/is (false? (:is-branch row)))) ;; the payload lands where the ordinary write path puts it, which - ;; is a `file_data` row rather than the legacy `file.data` column - (t/is (some? (th/db-get :file-data {:file-id branch-file-id :type "data"}))) + ;; is the `file_data` row of type "main" rather than the legacy + ;; `file.data` column + (t/is (some? (th/db-get :file-data {:file-id branch-file-id :type "main"}))) (t/is (empty? (th/db-query :file-branch-change {:branch-id branch-id})))