File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1941,11 +1941,11 @@ mod tests {
19411941 }
19421942
19431943 if remove_by_timeout {
1944- network_graph. remove_stale_channels_with_time ( 100 + 60 * 60 * 24 * 14 ) ;
1944+ network_graph. remove_stale_channels_with_time ( 100 + STALE_CHANNEL_UPDATE_AGE_LIMIT_SECS ) ;
19451945 assert_eq ! ( network_graph. read_only( ) . channels( ) . len( ) , 1 ) ;
19461946 assert_eq ! ( network_graph. read_only( ) . nodes( ) . len( ) , 2 ) ;
19471947
1948- network_graph. remove_stale_channels_with_time ( 101 + 60 * 60 * 24 * 14 ) ;
1948+ network_graph. remove_stale_channels_with_time ( 101 + STALE_CHANNEL_UPDATE_AGE_LIMIT_SECS ) ;
19491949 #[ cfg( feature = "std" ) ]
19501950 {
19511951 // In std mode, a further check is performed before fully removing the channel -
@@ -1956,7 +1956,7 @@ mod tests {
19561956
19571957 use std:: time:: { SystemTime , UNIX_EPOCH } ;
19581958 let announcement_time = SystemTime :: now ( ) . duration_since ( UNIX_EPOCH ) . expect ( "Time must be > 1970" ) . as_secs ( ) ;
1959- network_graph. remove_stale_channels_with_time ( announcement_time + 1 + 60 * 60 * 24 * 14 ) ;
1959+ network_graph. remove_stale_channels_with_time ( announcement_time + 1 + STALE_CHANNEL_UPDATE_AGE_LIMIT_SECS ) ;
19601960 }
19611961 } else {
19621962 // Permanent closing deletes a channel
You can’t perform that action at this time.
0 commit comments