mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
itest+lncfg: test the quiescence timeout behaivor
This commit is contained in:
@@ -40,7 +40,9 @@ func (h *Htlcswitch) Validate() error {
|
||||
MaxMailboxDeliveryTimeout)
|
||||
}
|
||||
|
||||
if h.QuiescenceTimeout < minQuiescenceTimeout {
|
||||
// Skip the validation for integration tests so we can use a smaller
|
||||
// timeout value to check the timeout behavior.
|
||||
if !IsDevBuild() && h.QuiescenceTimeout < minQuiescenceTimeout {
|
||||
return fmt.Errorf("quiescencetimeout: %v below minimal: %v",
|
||||
h.QuiescenceTimeout, minQuiescenceTimeout)
|
||||
}
|
||||
|
Reference in New Issue
Block a user