Skip to content

Commit 383c7de

Browse files
benthecarmanclaude
andcommitted
Shorten expired-invoice wait from 5s to 2s
The 1-second invoice has already expired by the time we need it expired; sleeping 5x as long doesn't add safety, just CI time. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1554fee commit 383c7de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

orange-sdk/tests/integration_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,8 +1482,8 @@ async fn test_payment_with_expired_invoice() {
14821482
let invoice =
14831483
third_party.bolt11_payment().receive(payment_amount.milli_sats(), &desc, 1).unwrap(); // 1 second expiry
14841484

1485-
// Wait longer to ensure invoice expires
1486-
tokio::time::sleep(Duration::from_secs(5)).await;
1485+
// Wait long enough to ensure the 1s-expiry invoice has expired.
1486+
tokio::time::sleep(Duration::from_secs(2)).await;
14871487

14881488
// Try to parse and pay the expired invoice - it should either fail to parse or fail to pay
14891489
let parse_result = wallet.parse_payment_instructions(invoice.to_string().as_str()).await;

0 commit comments

Comments
 (0)