Skip to content

Commit

Permalink
Always print the session during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Proziam committed Oct 13, 2024
1 parent 5862819 commit 506a058
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/client_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,10 @@ async fn update_user_test() {

let session = auth_client
.login_with_email(&demo_email, &demo_password)
.await;
.await
.unwrap();

if session.is_err() {
eprintln!("{:?}", session.as_ref().unwrap_err())
}
eprintln!("{:?}", session);

let updated_user = UpdateUserPayload {
email: Some(demo_email.clone()),
Expand All @@ -245,7 +244,7 @@ async fn update_user_test() {
};

let first_response = auth_client
.update_user(updated_user, session.unwrap().access_token)
.update_user(updated_user, session.access_token)
.await;

if first_response.is_err() {
Expand Down

0 comments on commit 506a058

Please sign in to comment.