Skip to content

Commit 5b98a77

Browse files
committed
f test ref
1 parent 2bf0900 commit 5b98a77

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
@@ -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

0 commit comments

Comments
 (0)