File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -306,31 +306,6 @@ class APIClientTests: XCTestCase {
306
306
}
307
307
await waitForExpectations ( timeout: 10 , handler: nil )
308
308
}
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
- }
334
309
}
335
310
336
311
enum ValidationError : Error {
You can’t perform that action at this time.
0 commit comments