瀏覽代碼

Removed excess `method` declarations on download and upload APIs in test suite.

Christian Noon 9 年之前
父節點
當前提交
bc2f0aa91c
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 1
      Tests/DownloadTests.swift
  2. 0 1
      Tests/UploadTests.swift

+ 1 - 1
Tests/DownloadTests.swift

@@ -210,7 +210,7 @@ class DownloadResponseTestCase: BaseTestCase {
         var response: DefaultDownloadResponse?
 
         // When
-        Alamofire.download(urlString, method: .get, headers: headers, to: destination)
+        Alamofire.download(urlString, headers: headers, to: destination)
             .response { resp in
                 response = resp
                 expectation.fulfill()

+ 0 - 1
Tests/UploadTests.swift

@@ -282,7 +282,6 @@ class UploadMultipartFormDataTestCase: BaseTestCase {
                 formData = multipartFormData
             },
             to: urlString,
-            method: .post,
             encodingCompletion: { result in
                 switch result {
                 case .success(let upload, _, _):