Skip to content

Commit

Permalink
Update testAsyncImageTaskEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed May 4, 2024
1 parent 8bc6c59 commit ffaa854
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class ImagePipelineAsyncAwaitTests: XCTestCase, @unchecked Sendable {
$0.isProgressiveDecodingEnabled = true
}
pipeline.queue.suspend()
DispatchQueue.main.async {
// TODO: Find a more reliable way to subscribe to events
DispatchQueue.global.asyncAfter(deadline: .now() + .milliseconds(64)) {
self.pipeline.queue.resume() // Make sure we subscribe after a delay
}

Expand Down

0 comments on commit ffaa854

Please sign in to comment.