Browse Source

Remove downloaded file at end of test

Mattt Thompson 10 years ago
parent
commit
3b3d4db0af
1 changed files with 2 additions and 0 deletions
  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