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 @@ -1803,11 +1803,11 @@ mod tests {
1803
1803
}
1804
1804
1805
1805
if remove_by_timeout {
1806
- network_graph. remove_stale_channels_with_time ( 100 + 60 * 60 * 24 * 14 ) ;
1806
+ network_graph. remove_stale_channels_with_time ( 100 + STALE_CHANNEL_UPDATE_AGE_LIMIT_SECS ) ;
1807
1807
assert_eq ! ( network_graph. read_only( ) . channels( ) . len( ) , 1 ) ;
1808
1808
assert_eq ! ( network_graph. read_only( ) . nodes( ) . len( ) , 2 ) ;
1809
1809
1810
- network_graph. remove_stale_channels_with_time ( 101 + 60 * 60 * 24 * 14 ) ;
1810
+ network_graph. remove_stale_channels_with_time ( 101 + STALE_CHANNEL_UPDATE_AGE_LIMIT_SECS ) ;
1811
1811
#[ cfg( feature = "std" ) ]
1812
1812
{
1813
1813
// In std mode, a further check is performed before fully removing the channel -
@@ -1818,7 +1818,7 @@ mod tests {
1818
1818
1819
1819
use std:: time:: { SystemTime , UNIX_EPOCH } ;
1820
1820
let announcement_time = SystemTime :: now ( ) . duration_since ( UNIX_EPOCH ) . expect ( "Time must be > 1970" ) . as_secs ( ) ;
1821
- network_graph. remove_stale_channels_with_time ( announcement_time + 1 + 60 * 60 * 24 * 14 ) ;
1821
+ network_graph. remove_stale_channels_with_time ( announcement_time + 1 + STALE_CHANNEL_UPDATE_AGE_LIMIT_SECS ) ;
1822
1822
}
1823
1823
} else {
1824
1824
// Permanent closing deletes a channel
You can’t perform that action at this time.
0 commit comments