Explorar el Código

Fix test availability.

Jon Shier hace 7 años
padre
commit
2c99a6691d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Tests/ParameterEncoderTests.swift

+ 1 - 1
Tests/ParameterEncoderTests.swift

@@ -105,9 +105,9 @@ final class JSONParameterEncoderTests: BaseTestCase {
     }
 }
 
-@available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 final class SortedKeysJSONParameterEncoderTests: BaseTestCase {
     func testTestJSONEncoderSortedKeysHasSortedKeys() throws {
+        guard #available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *) else { return }
         // Given
         let encoder = JSONParameterEncoder.sortedKeys
         let request = URLRequest.makeHTTPBinRequest()