Fix progress test

This commit is contained in:
Sami Samhuri 2024-10-20 17:56:05 -07:00
parent d82bd64635
commit 979a8e23ee
No known key found for this signature in database

View file

@ -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)