Skip to content

Commit 55cc27d

Browse files
committed
Test JIT channels: check that lnpay success is true.
This test fails since 0f314d1
1 parent cd1d384 commit 55cc27d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/regtest/regtest.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,11 @@ if [[ $1 == "just_in_time" ]]; then
779779
echo "carol pays alice"
780780
# note: set amount to 0.001 to test failure: 'payment too low'
781781
invoice=$($alice add_request 0.01 --lightning --memo "invoice" | jq -r ".lightning_invoice")
782-
$carol lnpay $invoice
782+
success=$($carol lnpay $invoice| jq '.success')
783+
if [[ $success != "true" ]]; then
784+
echo "JIT payment failed"
785+
exit 1
786+
fi
783787
fi
784788

785789
if [[ $1 == "unixsockets" ]]; then

0 commit comments

Comments
 (0)