Skip to content

Commit 94f4322

Browse files
committed
aestastastast
1 parent 1255559 commit 94f4322

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

iOS_SDK/OneSignalSDK/OneSignalUserMocks/MockUserRequests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@ public class MockUserRequests: NSObject {
6060
]
6161
}
6262

63-
public static func testUnauthorizedailureError() -> NSError {
63+
public static func testUnauthorizedailureError() -> OneSignalClientError {
6464
let userInfo = ["returned": [
6565
"errors": [["title": "token has invalid claims: token is expired", "code": "auth-0"]],
6666
"httpStatusCode": 401
6767
]]
68-
return NSError(domain: "not-important", code: 401, userInfo: userInfo)
68+
let nsError = NSError(domain: "not-important", code: 401, userInfo: userInfo)
69+
let error = OneSignalClientError(code: 401, message: "not-important", responseHeaders: nil, response: nil, underlyingError: nsError)
70+
return error!
6971
}
7072
}
7173

0 commit comments

Comments
 (0)