Skip to content

Commit

Permalink
Fix tests with invalid URL
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Apr 20, 2024
1 parent 0046839 commit 17cbd6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class ImagePipelineLoadDataTests: XCTestCase {
}

// WHEN
let record = expect(pipeline).toLoadData(with: ImageRequest(url: URL(string: "http://example.com/invalid url")))
let record = expect(pipeline).toLoadData(with: ImageRequest(url: URL(string: "")))
wait()

// THEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ class ImagePipelineTests: XCTestCase {

// WHEN
for _ in 0...10 {
expect(pipeline).toFailRequest(ImageRequest(url: URL(string: "http://example.com/invalid url")))
expect(pipeline).toFailRequest(ImageRequest(url: URL(string: "")))
wait()
}
}
Expand Down

0 comments on commit 17cbd6c

Please sign in to comment.