Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Add integration test utils, first LSPS2 integration test #118

Merged
merged 4 commits into from
May 14, 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
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
if: matrix.msrv
run: |
cargo update -p proptest --precise "1.2.0" --verbose # proptest 1.3.0 requires rustc 1.64.0
cargo update -p regex --precise "1.9.6" --verbose # regex 1.10.0 requires rustc 1.65.0.
- name: Cargo check
run: cargo check --release
- name: Check documentation
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo
serde_json = "1.0"

[dev-dependencies]
lightning = { version = "0.0.123", default-features = false, features = ["max_level_trace", "_test_utils"] }
lightning-persister = { version = "0.0.123", default-features = false }
lightning-background-processor = { version = "0.0.123", default-features = false, features = ["std"] }
proptest = "1.0.0"
tokio = { version = "1.35", default-features = false, features = [ "rt-multi-thread", "time", "sync", "macros" ] }
2 changes: 2 additions & 0 deletions src/lsps2/msgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ mod tests {
assert_eq!(opening_fee_params.valid_until, valid_until);
assert_eq!(opening_fee_params.min_lifetime, min_lifetime);
assert_eq!(opening_fee_params.max_client_to_self_delay, max_client_to_self_delay);
assert_eq!(opening_fee_params.min_payment_size_msat, min_payment_size_msat);
assert_eq!(opening_fee_params.max_payment_size_msat, max_payment_size_msat);

assert!(is_valid_opening_fee_params(&opening_fee_params, &promise_secret));
}
Expand Down
Loading
Loading