@@ -1437,8 +1437,6 @@ mod tests {
1437
1437
enum TestResult {
1438
1438
PaymentFailure { path : Vec < RouteHop > , short_channel_id : u64 } ,
1439
1439
PaymentSuccess { path : Vec < RouteHop > } ,
1440
- ProbeFailure { path : Vec < RouteHop > , short_channel_id : u64 } ,
1441
- ProbeSuccess { path : Vec < RouteHop > } ,
1442
1440
}
1443
1441
1444
1442
impl TestScorer {
@@ -1474,12 +1472,6 @@ mod tests {
1474
1472
Some ( TestResult :: PaymentSuccess { path } ) => {
1475
1473
panic ! ( "Unexpected successful payment path: {:?}" , path)
1476
1474
} ,
1477
- Some ( TestResult :: ProbeFailure { path, .. } ) => {
1478
- panic ! ( "Unexpected failed payment probe: {:?}" , path)
1479
- } ,
1480
- Some ( TestResult :: ProbeSuccess { path } ) => {
1481
- panic ! ( "Unexpected successful payment probe: {:?}" , path)
1482
- } ,
1483
1475
None => panic ! ( "Unexpected payment_path_failed call: {:?}" , actual_path) ,
1484
1476
}
1485
1477
}
@@ -1494,18 +1486,12 @@ mod tests {
1494
1486
Some ( TestResult :: PaymentSuccess { path } ) => {
1495
1487
assert_eq ! ( actual_path, & path. iter( ) . collect:: <Vec <_>>( ) [ ..] ) ;
1496
1488
} ,
1497
- Some ( TestResult :: ProbeFailure { path, .. } ) => {
1498
- panic ! ( "Unexpected failed payment probe: {:?}" , path)
1499
- } ,
1500
- Some ( TestResult :: ProbeSuccess { path } ) => {
1501
- panic ! ( "Unexpected successful payment probe: {:?}" , path)
1502
- } ,
1503
1489
None => panic ! ( "Unexpected payment_path_successful call: {:?}" , actual_path) ,
1504
1490
}
1505
1491
}
1506
1492
}
1507
1493
1508
- fn probe_failed ( & mut self , actual_path : & [ & RouteHop ] , actual_short_channel_id : u64 ) {
1494
+ fn probe_failed ( & mut self , actual_path : & [ & RouteHop ] , _ : u64 ) {
1509
1495
if let Some ( expectations) = & mut self . expectations {
1510
1496
match expectations. pop_front ( ) {
1511
1497
Some ( TestResult :: PaymentFailure { path, .. } ) => {
@@ -1514,13 +1500,6 @@ mod tests {
1514
1500
Some ( TestResult :: PaymentSuccess { path } ) => {
1515
1501
panic ! ( "Unexpected successful payment path: {:?}" , path)
1516
1502
} ,
1517
- Some ( TestResult :: ProbeFailure { path, short_channel_id } ) => {
1518
- assert_eq ! ( actual_path, & path. iter( ) . collect:: <Vec <_>>( ) [ ..] ) ;
1519
- assert_eq ! ( actual_short_channel_id, short_channel_id) ;
1520
- } ,
1521
- Some ( TestResult :: ProbeSuccess { path } ) => {
1522
- panic ! ( "Unexpected successful payment probe: {:?}" , path)
1523
- } ,
1524
1503
None => panic ! ( "Unexpected payment_path_failed call: {:?}" , actual_path) ,
1525
1504
}
1526
1505
}
@@ -1534,12 +1513,6 @@ mod tests {
1534
1513
Some ( TestResult :: PaymentSuccess { path } ) => {
1535
1514
panic ! ( "Unexpected successful payment path: {:?}" , path)
1536
1515
} ,
1537
- Some ( TestResult :: ProbeFailure { path, .. } ) => {
1538
- panic ! ( "Unexpected failed payment probe: {:?}" , path)
1539
- } ,
1540
- Some ( TestResult :: ProbeSuccess { path } ) => {
1541
- assert_eq ! ( actual_path, & path. iter( ) . collect:: <Vec <_>>( ) [ ..] ) ;
1542
- } ,
1543
1516
None => panic ! ( "Unexpected payment_path_successful call: {:?}" , actual_path) ,
1544
1517
}
1545
1518
}
0 commit comments