diff --git a/Modules/Images/Tests/ImagesTests/ImageDownloaderTests.swift b/Modules/Images/Tests/ImagesTests/ImageDownloaderTests.swift index 85f072a6d..578eb604f 100644 --- a/Modules/Images/Tests/ImagesTests/ImageDownloaderTests.swift +++ b/Modules/Images/Tests/ImagesTests/ImageDownloaderTests.swift @@ -16,12 +16,12 @@ import UniformTypeIdentifiers @Test func thumbnailTooSmallIsRejected() async throws { let configuration = ImageDownloader.Configuration(cacheFolderName: "Test", maxPixelSize: 512, format: .jpeg(compressionQuality: 0.8), memoryCacheByteLimit: 0, requiresSignificantDimensions: true, downloadLimiter: nil) - let smallImageData = try #require(pngData(width: 72, height: 72)) + let smallImageData = try #require(pngData(width: 48, height: 48)) await #expect { _ = try await ImageDownloader.scaledImageData(smallImageData, statusCode: 200, configuration: configuration) } throws: { error in - (error as? ImageDownloadError)?.rejectedPixelSize?.width == 72 + (error as? ImageDownloadError)?.rejectedPixelSize?.width == 48 } } }