Переглянути джерело

Remove downloaded file at end of test

Mattt Thompson 10 роки тому
батько
коміт
3b3d4db0af
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      Tests/DownloadTests.swift

+ 2 - 0
Tests/DownloadTests.swift

@@ -72,6 +72,8 @@ class AlamofireDownloadResponseTestCase: XCTestCase {
                 } else {
                     XCTFail("data should exist for contents of URL")
                 }
+
+                fileManager.removeItemAtURL(file, error: nil)
         }
 
         waitForExpectationsWithTimeout(10) { (error) in