Skip to content

Commit a90e9fe

Browse files
Split up some tests that have many variants
Helps when debugging to know which variants failed.
1 parent 8cab7d0 commit a90e9fe

2 files changed

Lines changed: 83 additions & 3 deletions

File tree

lightning/src/ln/monitor_tests.rs

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3803,27 +3803,83 @@ fn do_test_lost_timeout_monitor_events(confirm_tx: CommitmentType, dust_htlcs: b
38033803
}
38043804

38053805
#[test]
3806-
fn test_lost_timeout_monitor_events() {
3806+
fn test_lost_timeout_monitor_events_a() {
38073807
do_test_lost_timeout_monitor_events(CommitmentType::RevokedCounterparty, false, false);
3808+
}
3809+
#[test]
3810+
fn test_lost_timeout_monitor_events_b() {
38083811
do_test_lost_timeout_monitor_events(CommitmentType::RevokedCounterparty, true, false);
3812+
}
3813+
#[test]
3814+
fn test_lost_timeout_monitor_events_c() {
38093815
do_test_lost_timeout_monitor_events(CommitmentType::PreviousCounterparty, false, false);
3816+
}
3817+
#[test]
3818+
fn test_lost_timeout_monitor_events_d() {
38103819
do_test_lost_timeout_monitor_events(CommitmentType::PreviousCounterparty, true, false);
3820+
}
3821+
#[test]
3822+
fn test_lost_timeout_monitor_events_e() {
38113823
do_test_lost_timeout_monitor_events(CommitmentType::LatestCounterparty, false, false);
3824+
}
3825+
#[test]
3826+
fn test_lost_timeout_monitor_events_f() {
38123827
do_test_lost_timeout_monitor_events(CommitmentType::LatestCounterparty, true, false);
3828+
}
3829+
#[test]
3830+
fn test_lost_timeout_monitor_events_g() {
38133831
do_test_lost_timeout_monitor_events(CommitmentType::LocalWithoutLastHTLC, false, false);
3832+
}
3833+
#[test]
3834+
fn test_lost_timeout_monitor_events_h() {
38143835
do_test_lost_timeout_monitor_events(CommitmentType::LocalWithoutLastHTLC, true, false);
3836+
}
3837+
#[test]
3838+
fn test_lost_timeout_monitor_events_i() {
38153839
do_test_lost_timeout_monitor_events(CommitmentType::LocalWithLastHTLC, false, false);
3840+
}
3841+
#[test]
3842+
fn test_lost_timeout_monitor_events_j() {
38163843
do_test_lost_timeout_monitor_events(CommitmentType::LocalWithLastHTLC, true, false);
3817-
3844+
}
3845+
#[test]
3846+
fn test_lost_timeout_monitor_events_k() {
38183847
do_test_lost_timeout_monitor_events(CommitmentType::RevokedCounterparty, false, true);
3848+
}
3849+
#[test]
3850+
fn test_lost_timeout_monitor_events_l() {
38193851
do_test_lost_timeout_monitor_events(CommitmentType::RevokedCounterparty, true, true);
3852+
}
3853+
#[test]
3854+
fn test_lost_timeout_monitor_events_m() {
38203855
do_test_lost_timeout_monitor_events(CommitmentType::PreviousCounterparty, false, true);
3856+
}
3857+
#[test]
3858+
fn test_lost_timeout_monitor_events_n() {
38213859
do_test_lost_timeout_monitor_events(CommitmentType::PreviousCounterparty, true, true);
3860+
}
3861+
#[test]
3862+
fn test_lost_timeout_monitor_events_o() {
38223863
do_test_lost_timeout_monitor_events(CommitmentType::LatestCounterparty, false, true);
3864+
}
3865+
#[test]
3866+
fn test_lost_timeout_monitor_events_p() {
38233867
do_test_lost_timeout_monitor_events(CommitmentType::LatestCounterparty, true, true);
3868+
}
3869+
#[test]
3870+
fn test_lost_timeout_monitor_events_q() {
38243871
do_test_lost_timeout_monitor_events(CommitmentType::LocalWithoutLastHTLC, false, true);
3872+
}
3873+
#[test]
3874+
fn test_lost_timeout_monitor_events_r() {
38253875
do_test_lost_timeout_monitor_events(CommitmentType::LocalWithoutLastHTLC, true, true);
3876+
}
3877+
#[test]
3878+
fn test_lost_timeout_monitor_events_s() {
38263879
do_test_lost_timeout_monitor_events(CommitmentType::LocalWithLastHTLC, false, true);
3880+
}
3881+
#[test]
3882+
fn test_lost_timeout_monitor_events_t() {
38273883
do_test_lost_timeout_monitor_events(CommitmentType::LocalWithLastHTLC, true, true);
38283884
}
38293885

lightning/src/ln/payment_tests.rs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,15 +1430,39 @@ fn do_test_dup_htlc_onchain_doesnt_fail_on_reload(
14301430
}
14311431

14321432
#[test]
1433-
fn test_dup_htlc_onchain_doesnt_fail_on_reload() {
1433+
fn test_dup_htlc_onchain_doesnt_fail_on_reload_a() {
14341434
do_test_dup_htlc_onchain_doesnt_fail_on_reload(true, true, true, true);
1435+
}
1436+
#[test]
1437+
fn test_dup_htlc_onchain_doesnt_fail_on_reload_b() {
14351438
do_test_dup_htlc_onchain_doesnt_fail_on_reload(true, true, true, false);
1439+
}
1440+
#[test]
1441+
fn test_dup_htlc_onchain_doesnt_fail_on_reload_c() {
14361442
do_test_dup_htlc_onchain_doesnt_fail_on_reload(true, true, false, false);
1443+
}
1444+
#[test]
1445+
fn test_dup_htlc_onchain_doesnt_fail_on_reload_d() {
14371446
do_test_dup_htlc_onchain_doesnt_fail_on_reload(true, false, true, true);
1447+
}
1448+
#[test]
1449+
fn test_dup_htlc_onchain_doesnt_fail_on_reload_e() {
14381450
do_test_dup_htlc_onchain_doesnt_fail_on_reload(true, false, true, false);
1451+
}
1452+
#[test]
1453+
fn test_dup_htlc_onchain_doesnt_fail_on_reload_f() {
14391454
do_test_dup_htlc_onchain_doesnt_fail_on_reload(true, false, false, false);
1455+
}
1456+
#[test]
1457+
fn test_dup_htlc_onchain_doesnt_fail_on_reload_g() {
14401458
do_test_dup_htlc_onchain_doesnt_fail_on_reload(false, false, true, true);
1459+
}
1460+
#[test]
1461+
fn test_dup_htlc_onchain_doesnt_fail_on_reload_h() {
14411462
do_test_dup_htlc_onchain_doesnt_fail_on_reload(false, false, true, false);
1463+
}
1464+
#[test]
1465+
fn test_dup_htlc_onchain_doesnt_fail_on_reload_i() {
14421466
do_test_dup_htlc_onchain_doesnt_fail_on_reload(false, false, false, false);
14431467
}
14441468

0 commit comments

Comments
 (0)