diff --git a/Source/AppleLogger/Implement/LogService.swift b/Source/AppleLogger/Implement/LogService.swift index 390a0c1..f6f02c2 100644 --- a/Source/AppleLogger/Implement/LogService.swift +++ b/Source/AppleLogger/Implement/LogService.swift @@ -19,11 +19,7 @@ public struct OSLogService: LogService { } private func sendLog(_ message: StaticString, log: OSLog, type: OSLogType, _ args: CVarArg) { - if #available(iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0, *) { - os_log(type, message, args) - } else { - os_log(message, log: log, type: type, args) - } + os_log(message, log: log, type: type, args) } init(_ osLog: OSLog) { diff --git a/Test/Network/JSONClientTest.swift b/Test/Network/JSONClientTest.swift index c166438..b32a46c 100644 --- a/Test/Network/JSONClientTest.swift +++ b/Test/Network/JSONClientTest.swift @@ -78,7 +78,7 @@ final class JSONClientTest: XCTestCase { Expect.promise( response, - state: .rejected(JSONClientError.responseDataIsNotDecodable), + state: .rejected(JSONClientError.responseDataIsNotDecodable(code: 200, body: Data())), timeout: .seconds(2) ) } @@ -154,7 +154,7 @@ final class JSONClientTest: XCTestCase { Expect.promise( response, - state: .rejected(JSONClientError.responseDataIsNotDecodable), + state: .rejected(JSONClientError.responseDataIsNotDecodable(code: 200, body: nil)), timeout: .seconds(2) ) } @@ -179,7 +179,7 @@ final class JSONClientTest: XCTestCase { Expect.promise( response, - state: .rejected(JSONClientError.responseDataIsNotDecodable), + state: .rejected(JSONClientError.responseDataIsNotDecodable(code: 200, body: Data())), timeout: .seconds(2) ) }