mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
test: increase ping timeout when running in debug mode
This commit is contained in:
parent
803d8041f1
commit
af4eb23a1c
1 changed files with 6 additions and 0 deletions
|
@ -50,7 +50,13 @@ const FRESHNESS_TIMER: u64 = 60;
|
|||
#[cfg(test)]
|
||||
const FRESHNESS_TIMER: u64 = 1;
|
||||
|
||||
#[cfg(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)]
|
||||
const PING_TIMER: u64 = 30;
|
||||
|
||||
/// Trait which handles persisting a [`ChannelManager`] to disk.
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue