Skip to content

Commit

Permalink
Extend test timeout for video encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Oct 15, 2024
1 parent 18f5a56 commit f7b9c0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UnitTests/Sources/MediaUploadingPreprocessorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f7b9c0d

Please sign in to comment.