From 85cbd65c9410c1cf39394f51529d84a8dabb7fd5 Mon Sep 17 00:00:00 2001 From: John Szumski Date: Thu, 7 Mar 2024 12:53:34 -0500 Subject: [PATCH] Switch image pipeline thread safety test from a resize to a blur processor to avoid marking it @MainActor --- Tests/NukeThreadSafetyTests/ThreadSafetyTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/NukeThreadSafetyTests/ThreadSafetyTests.swift b/Tests/NukeThreadSafetyTests/ThreadSafetyTests.swift index f6e4af6ef..6bb369418 100644 --- a/Tests/NukeThreadSafetyTests/ThreadSafetyTests.swift +++ b/Tests/NukeThreadSafetyTests/ThreadSafetyTests.swift @@ -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 }