Skip to content

Commit

Permalink
Increase test payment size from 1000 to 10000
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Jun 17, 2024
1 parent 4f64f7b commit a9a9285
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions test/test01_payments_eclair.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@ setup() {
run generate_offer_eclair 'eclair1'
assert_line --partial 'lno'

run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 1000
run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 10000
assert_line --partial 'Successfully paid for offer!'
}

@test "Generate bolt12 offer on eclair2 and pay from lndk1 (lnd1 -> lnd2 -> eclair2)" {
run generate_offer_eclair 'eclair2'
assert_line --partial 'lno'

run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 1000
run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 10000
assert_line --partial 'Successfully paid for offer!'
}

@test "Generate bolt12 offer on eclair3 and pay from lndk2 (lnd2 -> eclair2 -> eclair3)" {
run generate_offer_eclair 'eclair3'
assert_line --partial 'lno'

run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 1000
run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 10000
assert_line --partial 'Successfully paid for offer!'
}

@test "Generate bolt12 offer on eclair3 and pay from lndk1 (lnd1 -> lnd2 -> eclair2 -> eclair2)" {
run generate_offer_eclair 'eclair2'
@test "Generate bolt12 offer on eclair3 and pay from lndk1 (lnd1 -> lnd2 -> eclair2 -> eclair3)" {
run generate_offer_eclair 'eclair3'
assert_line --partial 'lno'

run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 1000
run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 10000
assert_line --partial 'Successfully paid for offer!'
}
8 changes: 4 additions & 4 deletions test/test02_payments_cln.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@ setup() {
run generate_offer_cln 'cln1'
assert_line --partial 'lno'

run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 1000
run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 10000
assert_line --partial 'Successfully paid for offer!'
}

@test "Generate bolt12 offer on cln2 and pay from lndk1 (lnd1 -> lnd2 -> cln2)" {
run generate_offer_cln 'cln2'
assert_line --partial 'lno'

run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 1000
run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 10000
assert_line --partial 'Successfully paid for offer!'
}

@test "Generate bolt12 offer on cln3 and pay from lndk2 (lnd2 -> cln2 -> cln3)" {
run generate_offer_cln 'cln3'
assert_line --partial 'lno'

run $PROJECT_ROOT/bin/lndk-cli lndk2 pay-offer $output 1000
run $PROJECT_ROOT/bin/lndk-cli lndk2 pay-offer $output 10000
assert_line --partial 'Successfully paid for offer!'
}

@test "Generate bolt12 offer on cln3 and pay from lndk1 (lnd1 -> lnd2 -> cln2 -> cln3)" {
run generate_offer_cln 'cln3'
assert_line --partial 'lno'

run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 1000
run $PROJECT_ROOT/bin/lndk-cli lndk1 pay-offer $output 10000
assert_line --partial 'Successfully paid for offer!'
}

0 comments on commit a9a9285

Please sign in to comment.