Skip to content

Commit

Permalink
Switch image pipeline thread safety test from a resize to a blur proc…
Browse files Browse the repository at this point in the history
…essor to avoid marking it @mainactor
  • Loading branch information
jszumski committed Mar 7, 2024
1 parent 1dbd025 commit 85cbd65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/NukeThreadSafetyTests/ThreadSafetyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ final class RandomizedTests: XCTestCase {
var request = ImageRequest(url: url)
request.priority = every(2) ? .high : .normal
if every(3) {
let size = every(2) ? CGSize(width: 40, height: 40) : CGSize(width: 60, height: 60)
request.processors = [ImageProcessors.Resize(size: size, contentMode: .aspectFit)]
let size = every(2) ? 40 : 60
request.processors = [ImageProcessors.GaussianBlur(radius: size)]
}
return request
}
Expand Down

0 comments on commit 85cbd65

Please sign in to comment.