Skip to content

Commit 02d422d

Browse files
committed
NSURLResponse was renamed and should use struct URL instead of NSURL
1 parent 1d82076 commit 02d422d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestFoundation/TestNSURLResponse.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class TestNSURLResponse : XCTestCase {
8787
XCTAssertEqual(res.suggestedFilename, "Unknown")
8888
}
8989
func test_copyWithZone() {
90-
let url = NSURL(string: "a/test/path")!
91-
let res = NSURLResponse(url: url, mimeType: "txt", expectedContentLength: 0, textEncodingName: nil)
90+
let url = URL(string: "a/test/path")!
91+
let res = URLResponse(url: url, mimeType: "txt", expectedContentLength: 0, textEncodingName: nil)
9292
XCTAssertTrue(res.isEqual(res.copy()))
9393
}
9494
}

0 commit comments

Comments
 (0)