Skip to content

Commit

Permalink
rollback to .to_string in test
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoPittella committed Aug 1, 2024
1 parent 9bbe575 commit 28f1871
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ pub async fn execute_failing_tx(
) {
println!("Executing transaction...");
// We compare string since we can't compare the error directly
assert!(matches!(client.new_transaction(tx_request).unwrap_err(), expected_error));
assert_eq!(
client.new_transaction(tx_request).unwrap_err().to_string(),
expected_error.to_string()
);
}

pub async fn execute_tx(client: &mut TestClient, tx_request: TransactionRequest) -> TransactionId {
Expand Down

0 comments on commit 28f1871

Please sign in to comment.