From 804fccf65041e7f2040b4e747f6a696358ba75e4 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 18 Aug 2026 12:47:51 +0300 Subject: [PATCH] Reduce the size of the portrait test video --- .../DevelopmentAssets/Media/portrait_test_video.mp4 | 4 ++-- UnitTests/Sources/MediaUploadingPreprocessorTests.swift | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Components/DevelopmentAssets/Media/portrait_test_video.mp4 b/Components/DevelopmentAssets/Media/portrait_test_video.mp4 index 783e96022..41a058b41 100644 --- a/Components/DevelopmentAssets/Media/portrait_test_video.mp4 +++ b/Components/DevelopmentAssets/Media/portrait_test_video.mp4 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cc39671ee91a08779e4149589a4635fa6b91519b07bfb2dee621ccab031a75c5 -size 5825201 +oid sha256:0b1465b1e379f4356e0cbde2ecc1a9cd2a58c7a69be7ca9f7b3b2df2e911e60c +size 2004302 diff --git a/UnitTests/Sources/MediaUploadingPreprocessorTests.swift b/UnitTests/Sources/MediaUploadingPreprocessorTests.swift index 51f7b6560..0f47da30a 100644 --- a/UnitTests/Sources/MediaUploadingPreprocessorTests.swift +++ b/UnitTests/Sources/MediaUploadingPreprocessorTests.swift @@ -122,8 +122,8 @@ final class MediaUploadingPreprocessorTests { // Check resulting video info #expect(videoInfo.mimetype == "video/mp4") - #expect(videoInfo.blurhash == "KSB{R8O]MuwQS4oJvcaIt8") - #expect(isEqual(videoInfo.size ?? 0, 5_824_946, within: 100)) + #expect(videoInfo.blurhash == "KRB{K[TLMtw7S4oez,emtS") + #expect(isEqual(videoInfo.size ?? 0, 2_004_134, within: 100)) #expect(videoInfo.width == 1080) #expect(videoInfo.height == 1920) #expect(isEqual(videoInfo.duration ?? 0, 21, within: 100)) @@ -151,8 +151,8 @@ final class MediaUploadingPreprocessorTests { // Check optimised video info #expect(optimizedVideoInfo.mimetype == "video/mp4") - #expect(optimizedVideoInfo.blurhash == "KSC5.vO]MuwQS4oJvcaIt8") - #expect(isEqual(optimizedVideoInfo.size ?? 0, 12_169_117, within: 100)) // Note: This is slightly stupid because it is larger now 🤦‍♂️ + #expect(optimizedVideoInfo.blurhash == "KRB{K[TLMtw7S4oez,emtS") + #expect(isEqual(optimizedVideoInfo.size ?? 0, 3_779_866, within: 100)) // Note: This is slightly stupid because it is larger now 🤦‍♂️ #expect(optimizedVideoInfo.width == 720) #expect(optimizedVideoInfo.height == 1280) #expect(isEqual(optimizedVideoInfo.duration ?? 0, 30, within: 100))