From fa4c03d94bf3ebd838ce9f981d4ac92daaba01f6 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 26 Oct 2026 19:52:32 -0700 Subject: [PATCH] Fix test. --- Modules/Images/Tests/ImagesTests/ImageDownloaderTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } }