Skip to content

Commit 86a9a8a

Browse files
committed
Fix e2e test
Bubble up payjoin-cli errors instead of silently swallowing them.
1 parent 226816a commit 86a9a8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

payjoin-cli/tests/e2e.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ mod e2e {
293293
.stderr(Stdio::inherit())
294294
.spawn()
295295
.expect("Failed to execute payjoin-cli");
296-
let _ = send_until_request_timeout(cli_send_initiator).await;
296+
send_until_request_timeout(cli_send_initiator).await?;
297297

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

314314
let cli_send_resumer = Command::new(payjoin_cli)
315315
.arg("--rpchost")
@@ -328,7 +328,7 @@ mod e2e {
328328
.stderr(Stdio::inherit())
329329
.spawn()
330330
.expect("Failed to execute payjoin-cli");
331-
let _ = check_payjoin_sent(cli_send_resumer).await;
331+
check_payjoin_sent(cli_send_resumer).await?;
332332
Ok(())
333333
}
334334

0 commit comments

Comments
 (0)