Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase test payment size from 1000 to 10000 #26

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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!'
}