Skip to content

Commit

Permalink
updated unit test target
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh62 committed Nov 15, 2023
1 parent 1e30a80 commit 662bef8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ class AWSAuthFederationToIdentityPoolTests: BaseAuthorizationTests {
AuthorizationState.configured),
AuthState.configured(
AuthenticationState.signedOut(.testData),
AuthorizationState.error(.sessionExpired))
AuthorizationState.error(.sessionExpired(
error: NotAuthorizedException(message: "message"))))
]

for initialState in statesToTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ extension FetchAuthSessionState: Codable {

extension AuthorizationError: Codable {
public init(from decoder: Decoder) throws {
self = .sessionExpired
self = .sessionExpired(error: NotAuthorizedException(message: "message"))
}

public func encode(to encoder: Encoder) throws {
Expand Down

0 comments on commit 662bef8

Please sign in to comment.