From f7b9c0dcda4bb492a42b16bdbb3a6b7de6e4ea13 Mon Sep 17 00:00:00 2001 From: Doug Date: Tue, 15 Oct 2024 16:54:40 +0100 Subject: [PATCH] Extend test timeout for video encoding. --- UnitTests/Sources/MediaUploadingPreprocessorTests.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UnitTests/Sources/MediaUploadingPreprocessorTests.swift b/UnitTests/Sources/MediaUploadingPreprocessorTests.swift index 2743bd0a78..7438c3a84c 100644 --- a/UnitTests/Sources/MediaUploadingPreprocessorTests.swift +++ b/UnitTests/Sources/MediaUploadingPreprocessorTests.swift @@ -46,6 +46,9 @@ final class MediaUploadingPreprocessorTests: XCTestCase { } func testLandscapeMovVideoProcessing() async { + // Allow double the default execution time as we encode the video twice now. + executionTimeAllowance = 120 + guard let url = Bundle(for: Self.self).url(forResource: "landscape_test_video.mov", withExtension: nil) else { XCTFail("Failed retrieving test asset") return @@ -106,6 +109,9 @@ final class MediaUploadingPreprocessorTests: XCTestCase { } func testPortraitMp4VideoProcessing() async { + // Allow double the default execution time as we encode the video twice now. + executionTimeAllowance = 120 + guard let url = Bundle(for: Self.self).url(forResource: "portrait_test_video.mp4", withExtension: nil) else { XCTFail("Failed retrieving test asset") return