@@ -1437,8 +1437,6 @@ mod tests {
14371437 enum TestResult {
14381438 PaymentFailure { path : Vec < RouteHop > , short_channel_id : u64 } ,
14391439 PaymentSuccess { path : Vec < RouteHop > } ,
1440- ProbeFailure { path : Vec < RouteHop > , short_channel_id : u64 } ,
1441- ProbeSuccess { path : Vec < RouteHop > } ,
14421440 }
14431441
14441442 impl TestScorer {
@@ -1474,12 +1472,6 @@ mod tests {
14741472 Some ( TestResult :: PaymentSuccess { path } ) => {
14751473 panic ! ( "Unexpected successful payment path: {:?}" , path)
14761474 } ,
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- } ,
14831475 None => panic ! ( "Unexpected payment_path_failed call: {:?}" , actual_path) ,
14841476 }
14851477 }
@@ -1494,18 +1486,12 @@ mod tests {
14941486 Some ( TestResult :: PaymentSuccess { path } ) => {
14951487 assert_eq ! ( actual_path, & path. iter( ) . collect:: <Vec <_>>( ) [ ..] ) ;
14961488 } ,
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- } ,
15031489 None => panic ! ( "Unexpected payment_path_successful call: {:?}" , actual_path) ,
15041490 }
15051491 }
15061492 }
15071493
1508- fn probe_failed ( & mut self , actual_path : & [ & RouteHop ] , actual_short_channel_id : u64 ) {
1494+ fn probe_failed ( & mut self , actual_path : & [ & RouteHop ] , _ : u64 ) {
15091495 if let Some ( expectations) = & mut self . expectations {
15101496 match expectations. pop_front ( ) {
15111497 Some ( TestResult :: PaymentFailure { path, .. } ) => {
@@ -1514,13 +1500,6 @@ mod tests {
15141500 Some ( TestResult :: PaymentSuccess { path } ) => {
15151501 panic ! ( "Unexpected successful payment path: {:?}" , path)
15161502 } ,
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- } ,
15241503 None => panic ! ( "Unexpected payment_path_failed call: {:?}" , actual_path) ,
15251504 }
15261505 }
@@ -1534,12 +1513,6 @@ mod tests {
15341513 Some ( TestResult :: PaymentSuccess { path } ) => {
15351514 panic ! ( "Unexpected successful payment path: {:?}" , path)
15361515 } ,
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- } ,
15431516 None => panic ! ( "Unexpected payment_path_successful call: {:?}" , actual_path) ,
15441517 }
15451518 }
0 commit comments