Skip to content

Commit

Permalink
test: improve error message on test_add_tx
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Jun 10, 2024
1 parent dbc0b15 commit d07fb76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/gateway/src/gateway_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ async fn test_add_tx() {
let response = add_tx(State(app_state), tx.into()).await.into_response();

let status_code = response.status();
assert_eq!(status_code, StatusCode::OK);

let response_bytes = &to_bytes(response).await;

assert_eq!(status_code, StatusCode::OK, "{response_bytes:?}");
assert_eq!(tx_hash, serde_json::from_slice(response_bytes).unwrap());
}

Expand Down

0 comments on commit d07fb76

Please sign in to comment.