@@ -1319,7 +1319,6 @@ mod tests {
13191319 use crate :: accountant:: scanners:: pending_payable_scanner:: utils:: TxByTable ;
13201320 use crate :: accountant:: scanners:: scan_schedulers:: {
13211321 NewPayableScanIntervalComputer , NewPayableScanIntervalComputerReal , ScanTiming ,
1322- DEFAULT_RETRY_INTERVAL ,
13231322 } ;
13241323 use crate :: accountant:: scanners:: test_utils:: {
13251324 MarkScanner , NewPayableScanIntervalComputerMock , PendingPayableCacheMock , ReplacementType ,
@@ -1959,7 +1958,6 @@ mod tests {
19591958 let mut config = bc_from_earning_wallet ( make_wallet ( "some_wallet_address" ) ) ;
19601959 config. scan_intervals_opt = Some ( ScanIntervals {
19611960 payable_scan_interval : Duration :: from_millis ( 10_000 ) ,
1962- retry_payable_scan_interval : Duration :: from_millis ( 1 ) ,
19631961 receivable_scan_interval : Duration :: from_millis ( 10_000 ) ,
19641962 pending_payable_scan_interval : Duration :: from_secs ( 100 ) ,
19651963 } ) ;
@@ -2682,7 +2680,6 @@ mod tests {
26822680 let mut config = bc_from_earning_wallet ( make_wallet ( "earning_wallet" ) ) ;
26832681 config. scan_intervals_opt = Some ( ScanIntervals {
26842682 payable_scan_interval : Duration :: from_millis ( 10_000 ) ,
2685- retry_payable_scan_interval : Duration :: from_millis ( 1 ) ,
26862683 pending_payable_scan_interval : Duration :: from_millis ( 2_000 ) ,
26872684 receivable_scan_interval : Duration :: from_millis ( 10_000 ) ,
26882685 } ) ;
@@ -2731,7 +2728,6 @@ mod tests {
27312728 let mut config = bc_from_earning_wallet ( make_wallet ( "earning_wallet" ) ) ;
27322729 config. scan_intervals_opt = Some ( ScanIntervals {
27332730 payable_scan_interval : Duration :: from_millis ( 10_000 ) ,
2734- retry_payable_scan_interval : Duration :: from_millis ( 1 ) ,
27352731 pending_payable_scan_interval : Duration :: from_millis ( 2_000 ) ,
27362732 receivable_scan_interval : Duration :: from_millis ( 10_000 ) ,
27372733 } ) ;
@@ -3656,7 +3652,6 @@ mod tests {
36563652 let mut config = bc_from_earning_wallet ( earning_wallet. clone ( ) ) ;
36573653 config. scan_intervals_opt = Some ( ScanIntervals {
36583654 payable_scan_interval : Duration :: from_secs ( 100 ) ,
3659- retry_payable_scan_interval : Duration :: from_millis ( 1 ) ,
36603655 pending_payable_scan_interval : Duration :: from_secs ( 10 ) ,
36613656 receivable_scan_interval : Duration :: from_millis ( 99 ) ,
36623657 } ) ;
@@ -3936,7 +3931,6 @@ mod tests {
39363931 // This simply means that we're gonna surplus this value (it abides by how many pending
39373932 // payable cycles have to go in between before the lastly submitted txs are confirmed),
39383933 payable_scan_interval : Duration :: from_millis ( 10 ) ,
3939- retry_payable_scan_interval : Duration :: from_millis ( 1 ) ,
39403934 pending_payable_scan_interval : Duration :: from_millis ( 50 ) ,
39413935 receivable_scan_interval : Duration :: from_secs ( 100 ) , // We'll never run this scanner
39423936 } ) ;
@@ -4025,7 +4019,6 @@ mod tests {
40254019 let mut config = bc_from_earning_wallet ( make_wallet ( "hi" ) ) ;
40264020 config. scan_intervals_opt = Some ( ScanIntervals {
40274021 payable_scan_interval : Duration :: from_millis ( 100 ) ,
4028- retry_payable_scan_interval : Duration :: from_millis ( 1 ) ,
40294022 pending_payable_scan_interval : Duration :: from_millis ( 50 ) ,
40304023 receivable_scan_interval : Duration :: from_millis ( 100 ) ,
40314024 } ) ;
@@ -4148,7 +4141,6 @@ mod tests {
41484141 let consuming_wallet = make_paying_wallet ( b"consuming" ) ;
41494142 config. scan_intervals_opt = Some ( ScanIntervals {
41504143 payable_scan_interval : Duration :: from_secs ( 50_000 ) ,
4151- retry_payable_scan_interval : Duration :: from_millis ( 1 ) ,
41524144 pending_payable_scan_interval : Duration :: from_secs ( 10_000 ) ,
41534145 receivable_scan_interval : Duration :: from_secs ( 50_000 ) ,
41544146 } ) ;
@@ -5249,7 +5241,7 @@ mod tests {
52495241 let mut payable_notify_params = retry_payable_notify_later_params_arc. lock ( ) . unwrap ( ) ;
52505242 let ( scheduled_msg, duration) = payable_notify_params. remove ( 0 ) ;
52515243 assert_eq ! ( scheduled_msg, ScanForRetryPayables :: default ( ) ) ;
5252- assert_eq ! ( duration, DEFAULT_RETRY_INTERVAL ) ;
5244+ assert_eq ! ( duration, Duration :: from_secs ( 5 * 60 ) ) ;
52535245 assert ! (
52545246 payable_notify_params. is_empty( ) ,
52555247 "Should be empty but {:?}" ,
@@ -5314,7 +5306,7 @@ mod tests {
53145306 ScanForRetryPayables {
53155307 response_skeleton_opt: None
53165308 } ,
5317- DEFAULT_RETRY_INTERVAL
5309+ Duration :: from_secs ( 5 * 60 )
53185310 ) ]
53195311 ) ;
53205312 assert_using_the_same_logger ( & logger, test_name, None )
@@ -5497,7 +5489,7 @@ mod tests {
54975489 ScanForRetryPayables {
54985490 response_skeleton_opt: Some ( response_skeleton)
54995491 } ,
5500- DEFAULT_RETRY_INTERVAL
5492+ Duration :: from_secs ( 5 * 60 )
55015493 ) ]
55025494 ) ;
55035495 assert_using_the_same_logger ( & logger, test_name, None )
@@ -5932,7 +5924,7 @@ mod tests {
59325924 ScanForRetryPayables {
59335925 response_skeleton_opt: None
59345926 } ,
5935- DEFAULT_RETRY_INTERVAL
5927+ Duration :: from_secs ( 5 * 60 )
59365928 ) ]
59375929 )
59385930 }
0 commit comments