Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
Bubble up payjoin-cli errors instead of silently swallowing them.
  • Loading branch information
spacebear21 committed Dec 23, 2024
1 parent 226816a commit 86a9a8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions payjoin-cli/tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ mod e2e {
.stderr(Stdio::inherit())
.spawn()
.expect("Failed to execute payjoin-cli");
let _ = send_until_request_timeout(cli_send_initiator).await;
send_until_request_timeout(cli_send_initiator).await?;

let cli_receive_resumer = Command::new(payjoin_cli)
.arg("--rpchost")
Expand All @@ -309,7 +309,7 @@ mod e2e {
.stderr(Stdio::inherit())
.spawn()
.expect("Failed to execute payjoin-cli");
let _ = respond_with_payjoin(cli_receive_resumer).await;
respond_with_payjoin(cli_receive_resumer).await?;

let cli_send_resumer = Command::new(payjoin_cli)
.arg("--rpchost")
Expand All @@ -328,7 +328,7 @@ mod e2e {
.stderr(Stdio::inherit())
.spawn()
.expect("Failed to execute payjoin-cli");
let _ = check_payjoin_sent(cli_send_resumer).await;
check_payjoin_sent(cli_send_resumer).await?;
Ok(())
}

Expand Down

0 comments on commit 86a9a8a

Please sign in to comment.