Skip to content

Commit

Permalink
Fix timeout on MP4 encoding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Oct 29, 2024
1 parent 1e851f3 commit 7b72be9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UnitTests/Sources/MediaUploadingPreprocessorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ final class MediaUploadingPreprocessorTests: XCTestCase {
}

func testLandscapeMovVideoProcessing() async {
// Allow double the default execution time as we encode the video twice now.
executionTimeAllowance = 120
// Allow an increased execution time as we encode the video twice now.
executionTimeAllowance = 180

guard let url = Bundle(for: Self.self).url(forResource: "landscape_test_video.mov", withExtension: nil) else {
XCTFail("Failed retrieving test asset")
Expand Down Expand Up @@ -109,8 +109,8 @@ final class MediaUploadingPreprocessorTests: XCTestCase {
}

func testPortraitMp4VideoProcessing() async {
// Allow double the default execution time as we encode the video twice now.
executionTimeAllowance = 120
// Allow an increased execution time as we encode the video twice now.
executionTimeAllowance = 180

guard let url = Bundle(for: Self.self).url(forResource: "portrait_test_video.mp4", withExtension: nil) else {
XCTFail("Failed retrieving test asset")
Expand Down

0 comments on commit 7b72be9

Please sign in to comment.