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 {
1941
1941
}
1942
1942
1943
1943
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 ) ;
1945
1945
assert_eq ! ( network_graph. read_only( ) . channels( ) . len( ) , 1 ) ;
1946
1946
assert_eq ! ( network_graph. read_only( ) . nodes( ) . len( ) , 2 ) ;
1947
1947
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 ) ;
1949
1949
#[ cfg( feature = "std" ) ]
1950
1950
{
1951
1951
// In std mode, a further check is performed before fully removing the channel -
@@ -1956,7 +1956,7 @@ mod tests {
1956
1956
1957
1957
use std:: time:: { SystemTime , UNIX_EPOCH } ;
1958
1958
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 ) ;
1960
1960
}
1961
1961
} else {
1962
1962
// Permanent closing deletes a channel
You can’t perform that action at this time.
0 commit comments