Quellcode durchsuchen

Remove downloaded file at end of test

Mattt Thompson vor 10 Jahren
Ursprung
Commit
3b3d4db0af
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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