We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2bb728 commit 0386410Copy full SHA for 0386410
lightning-background-processor/src/lib.rs
@@ -60,13 +60,15 @@ const FRESHNESS_TIMER: u64 = 60;
60
#[cfg(test)]
61
const FRESHNESS_TIMER: u64 = 1;
62
63
-#[cfg(not(debug_assertions))]
+#[cfg(all(not(test), not(debug_assertions)))]
64
const PING_TIMER: u64 = 5;
65
/// Signature operations take a lot longer without compiler optimisations.
66
/// Increasing the ping timer allows for this but slower devices will be disconnected if the
67
/// timeout is reached.
68
-#[cfg(debug_assertions)]
+#[cfg(all(not(test), debug_assertions))]
69
const PING_TIMER: u64 = 30;
70
+#[cfg(test)]
71
+const PING_TIMER: u64 = 1;
72
73
/// Trait which handles persisting a [`ChannelManager`] to disk.
74
///
0 commit comments