From ebb7c19a89f26eb034c553a97cbe50e2c9a6fd04 Mon Sep 17 00:00:00 2001 From: woxtu Date: Sat, 9 Mar 2024 10:37:15 +0900 Subject: [PATCH] Fix image loading test --- Tests/NukeExtensionsTests/ImageViewIntegrationTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/NukeExtensionsTests/ImageViewIntegrationTests.swift b/Tests/NukeExtensionsTests/ImageViewIntegrationTests.swift index d965997f2..72d50b287 100644 --- a/Tests/NukeExtensionsTests/ImageViewIntegrationTests.swift +++ b/Tests/NukeExtensionsTests/ImageViewIntegrationTests.swift @@ -70,7 +70,7 @@ class ImageViewIntegrationTests: XCTestCase { func testLoadImageWithInvalidURLString() { // WHEN let expectation = self.expectation(description: "Image loaded") - NukeExtensions.loadImage(with: URL(string: "http://example.com/invalid url"), into: imageView) { result in + NukeExtensions.loadImage(with: URL(string: ""), into: imageView) { result in XCTAssertEqual(result.error, .imageRequestMissing) expectation.fulfill() }