mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-19 05:43:55 +01:00
Speed up test_timer_tick_called
This commit is contained in:
parent
fe8c10db95
commit
d7c8c8c572
@ -60,13 +60,15 @@ const FRESHNESS_TIMER: u64 = 60;
|
||||
#[cfg(test)]
|
||||
const FRESHNESS_TIMER: u64 = 1;
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
#[cfg(all(not(test), not(debug_assertions)))]
|
||||
const PING_TIMER: u64 = 5;
|
||||
/// Signature operations take a lot longer without compiler optimisations.
|
||||
/// Increasing the ping timer allows for this but slower devices will be disconnected if the
|
||||
/// timeout is reached.
|
||||
#[cfg(debug_assertions)]
|
||||
#[cfg(all(not(test), debug_assertions))]
|
||||
const PING_TIMER: u64 = 30;
|
||||
#[cfg(test)]
|
||||
const PING_TIMER: u64 = 1;
|
||||
|
||||
/// Trait which handles persisting a [`ChannelManager`] to disk.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user