Skip to content

Commit 8ddd24e

Browse files
committed
add delay after confirming payment receipt in e2e tests
Introduce a 1-second delay after detecting successful payment receipt in end-to-end tests to ensure downstream processes have sufficient time to stabilize before proceeding.
1 parent a44401f commit 8ddd24e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/bruno/e2e/cross-chain-hub/08-check-hub-received-wrapped-btc.bru

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ script:post-response {
5353

5454
if (parseInt(res.body.result.channels[0].local_balance, 16) >= 100000) {
5555
console.log("Hub has received the payment");
56+
await new Promise(r => setTimeout(r, 1000));
5657
bru.setVar("iteration", 0);
5758
} else if (i+1 < n) {
5859
await new Promise(r => setTimeout(r, 500));

tests/bruno/e2e/cross-chain-hub/14-check-hub-received-btc-in-lnd.bru

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ script:post-response {
3333

3434
if (parseInt(res.body.local_balance.sat, 10) === 50000) {
3535
console.log("Hub has received the payment");
36+
await new Promise(r => setTimeout(r, 1000));
3637
bru.setVar("iteration", 0);
3738
} else if (i+1 < n) {
3839
await new Promise(r => setTimeout(r, 500));

0 commit comments

Comments
 (0)