From 979a8e23ee969e27060bc54e4f6b356549c3e8b9 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 20 Oct 2024 17:56:05 -0700 Subject: [PATCH] Fix progress test --- .../SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift b/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift index bd2ac61..5fb57c7 100644 --- a/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift +++ b/Tests/SJSAssetExportSessionTests/SJSAssetExportSessionTests.swift @@ -207,6 +207,8 @@ final class ExportSessionTests { as: .mov ) + // Wait for last progress value to be yielded. + try await Task.sleep(for: .milliseconds(10)) #expect(progressValues.value.count > 2, "There should be intermediate progress updates") #expect(progressValues.value.first == 0.0) #expect(progressValues.value.last == 1.0)