Skip to content

Commit 899b8ce

Browse files
committed
remove duplicate test case
1 parent cd58197 commit 899b8ce

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Networking Demo AppTests/APIClientTests.swift

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -306,31 +306,6 @@ class APIClientTests: XCTestCase {
306306
}
307307
await waitForExpectations(timeout: 10, handler: nil)
308308
}
309-
310-
// todo remove
311-
func testDownloadThreading() throws {
312-
let apiClientExpectation = expectation(description: "Expect api client to download image file.")
313-
let request = TestDownloadRequest()
314-
let api = APIClient(apiContext: SimpleAPIContext())
315-
let fileManager = FileManager.default
316-
317-
api.perform(request) { result in
318-
switch result {
319-
case .success(let downloadResponse):
320-
do {
321-
let image = UIImage(data: try Data(contentsOf: downloadResponse.url))
322-
XCTAssertNotNil(image)
323-
try fileManager.removeItem(at: downloadResponse.url)
324-
apiClientExpectation.fulfill()
325-
} catch {
326-
XCTFail(error.localizedDescription)
327-
}
328-
case let .failure(error):
329-
XCTFail(error.localizedDescription)
330-
}
331-
}
332-
waitForExpectations(timeout: 10, handler: nil)
333-
}
334309
}
335310

336311
enum ValidationError: Error {

0 commit comments

Comments
 (0)