Skip to content

Commit 3179bfb

Browse files
committed
f test ref
1 parent 7383def commit 3179bfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,11 +1803,11 @@ mod tests {
18031803
}
18041804

18051805
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);
18071807
assert_eq!(network_graph.read_only().channels().len(), 1);
18081808
assert_eq!(network_graph.read_only().nodes().len(), 2);
18091809

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);
18111811
#[cfg(feature = "std")]
18121812
{
18131813
// In std mode, a further check is performed before fully removing the channel -
@@ -1818,7 +1818,7 @@ mod tests {
18181818

18191819
use std::time::{SystemTime, UNIX_EPOCH};
18201820
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);
18221822
}
18231823
} else {
18241824
// Permanent closing deletes a channel

0 commit comments

Comments
 (0)