diff --git a/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift b/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift index 5fb57c7..71ba608 100644 --- a/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift +++ b/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift @@ -80,7 +80,8 @@ final class ExportSessionTests { let videoTrack = try #require(await exportedAsset.sendTracks(withMediaType: .video).first) #expect(try await videoTrack.load(.naturalSize) == CGSize(width: 1280, height: 720)) #expect(try await videoTrack.load(.nominalFrameRate) == 24.0) - #expect(try await videoTrack.load(.estimatedDataRate) == 1_036_128) + let dataRate = try await videoTrack.load(.estimatedDataRate) + #expect((1_000_000 ... 1_100_000).contains(dataRate)) let videoFormat = try #require(await videoTrack.load(.formatDescriptions).first) #expect(videoFormat.mediaType == .video) #expect(videoFormat.mediaSubType == .h264) @@ -128,7 +129,8 @@ final class ExportSessionTests { let videoTrack = try #require(await exportedAsset.sendTracks(withMediaType: .video).first) #expect(try await videoTrack.load(.naturalSize) == CGSize(width: 1280, height: 720)) #expect(try await videoTrack.load(.nominalFrameRate) == 24.0) - #expect(try await videoTrack.load(.estimatedDataRate) == 1_036_128) + let dataRate = try await videoTrack.load(.estimatedDataRate) + #expect((1_000_000 ... 1_100_000).contains(dataRate)) let videoFormat = try #require(await videoTrack.load(.formatDescriptions).first) #expect(videoFormat.mediaType == .video) #expect(videoFormat.mediaSubType == .h264)