Skip to content

Commit

Permalink
test: log error in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pat Losoponkul <[email protected]>
  • Loading branch information
Pat Losoponkul committed Nov 16, 2023
1 parent 6c30902 commit 0aba45b
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 @@ -110,7 +110,8 @@ class KeycloakClientImpl(client: AuthzClient, httpClient: Client, keycloakConfig
)
)
)
.logError("Fail to get the accessToken on keyclaok.")
.logError("Fail to get the accessToken on keycloak.")
.tapError(_ => ZIO.succeed(keycloakConfig).debug("keycloakConfig"))
.mapError(e => KeycloakClientError.UnexpectedError("Fail to get the accessToken on keyclaok."))
.provide(ZLayer.succeed(httpClient))
body <- response.body.asString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ object KeycloakPermissionManagementServiceSpec
contextAwareTransactorLayer,
pgContainerLayer,
apolloLayer
).provide(Runtime.removeDefaultLoggers)
)
}

private val successfulCasesSuite = suite("Successful Cases")(
Expand Down

0 comments on commit 0aba45b

Please sign in to comment.